From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: Re: execute shell commands directly in a screen session Date: Fri, 08 Jan 2010 09:12:15 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262938422 10660 80.91.229.12 (8 Jan 2010 08:13:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 08:13:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 08 09:13:35 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NT9yP-0002Uy-G2 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jan 2010 09:13:33 +0100 Original-Received: from localhost ([127.0.0.1]:40757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NT9yP-0003U8-Uz for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jan 2010 03:13:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NT9xn-0003Hl-Sl for help-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:12:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NT9xi-0003Av-Hf for help-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:12:54 -0500 Original-Received: from [199.232.76.173] (port=48641 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NT9xi-0003Aa-7L for help-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:12:50 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:53011) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NT9xh-0008Ta-R0 for help-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:12:50 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NT9xc-0002H5-Ka for help-gnu-emacs@gnu.org; Fri, 08 Jan 2010 09:12:44 +0100 Original-Received: from 0-030.vpn.rwth-aachen.de ([134.130.240.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jan 2010 09:12:44 +0100 Original-Received: from f.braennstroem by 0-030.vpn.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jan 2010 09:12:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 0-030.vpn.rwth-aachen.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090227 Shredder/3.0b2 In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71125 Archived-At: Hi, right now, I am using the 'call-process-shell-command', which starts an xterm: (call-process-shell-command "xterm " nil 0 nil "-e 'sh ~/scpAachen.sh" (dired-get-filename) " '" )) screen has an option -dmS NAME PROGRAM, which might be suitable as well, but I think that there is a better option with e.g. eshell. Eshell should execute the command using screen in background... Would be nice, if you have an idea. Fabian On 01/07/2010 12:37 PM, Fabian Braennstroem wrote: > Hi, > > does anyone know, if it is possible to run some linux commands directly > in a new or maybe existing screen session? > Maybe, this works via eshell or some term!? > Would be great! > > Thanks in advance! > Fabian > > > >