Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx> writes:
> Quoth Thierry Volpiatto <thierry.volpiatto@xxxxxxxxx>:
>> Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx> writes:
>>> Quoth Michael Heerdegen <michaelh@xxxxxxxxxxxxxxxxx>:
>>>> 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!
> Great :)
>> 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.
> The fact it is so powerful is what puts me off. I can sees days, and
> even weeks, disappearing as I get more and more into it :)
>> 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 ?
> Hmm... like interactive-asynchronous-shell-command? :)
Yes i saw you wrote something about async shell-command ;)
I will have a look.
> I suspect Michael knows all about these kinds of methods and is being a
> little braver than I am in starting to explore the capabilities of
Some simple thing like that can call any external process async:
| (defun tv-async-process (process &rest args)
| (apply #'start-process process nil process
==> (tv-async-process "xterm" "-e" "lynx")
==> (tv-async-process "firefox" "http://www.emacswiki.org/cgi-bin/wiki")
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France