From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Asynchronous commands with eshell-command Date: Tue, 27 Jan 2009 17:40:02 +0100 Message-ID: <87skn44s9p.fsf@tux.homenetwork> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233074861 31456 80.91.229.12 (27 Jan 2009 16:47:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 16:47:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 17:48:54 2009 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 1LRr71-0008OE-JY for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 17:48:31 +0100 Original-Received: from localhost ([127.0.0.1]:44448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRr5j-0006lw-OF for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 11:47:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRr5L-0006jR-JM for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 11:46:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRr5L-0006i5-0t for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 11:46:47 -0500 Original-Received: from [199.232.76.173] (port=55985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRr5K-0006hk-Qm for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 11:46:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:41263 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRr5K-00032t-3g for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 11:46:46 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LRr5D-0004pD-HW for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 16:46:41 +0000 Original-Received: from 137.77.197-77.rev.gaoland.net ([77.197.77.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 16:46:39 +0000 Original-Received: from thierry.volpiatto by 137.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 16:46:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 137.77.197-77.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:VGNU4DRI65hdHBuFqAPD3gc9PuQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61704 Archived-At: Hi Michael, Sebastian and all! Sebastian Tennant writes: > Quoth Michael Heerdegen : >> Does anybody know how to start external commands asynchronously with >> `eshell-command'? I tried `xterm &' for example, which works but also >> raises an error. >> >> The source code seems to support the asynchronous case, but I don't >> know what to type. > > Where's Thierry Volpiatto when you need him :) I am here again! But i am not a specialist of eshell, just a user that use always eshell-command instead of shell-command (M-!) because it's much more powerful: It accept elisp code, shell code, the both mixed, alias, all completion and more. But for asynchronous commands, i don't know. Using & work fine here, except apply seem to doesn't like the &. May be have a look at `eshell-parse-argument-hook'. I will look at that on my side. But if you want to make more complex async commands, why not creating a specialized function using start-process/start-process-shell-command with another sentinel-function that use set-process-sentinel ? -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France