Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get the return code of a process started with `start-process'

9 views
Skip to first unread message

lee

unread,
Jul 21, 2011, 12:54:56 PM7/21/11
to
Hi,

how can I find out the return code of a process started with
`start-process'?


--
http://www.asciiribbon.org/
http://tools.ietf.org/html/rfc1855
http://www.caliburn.nl/topposting.html

Swami Tota Ram Shankar

unread,
Jul 21, 2011, 4:48:57 PM7/21/11
to

I find it interesting that an emacs fan like you did not stumble on
this usage despite using it for many years.

Is this true in general for the emacs learning curve - and why ?

Swami Tota Ram Shankar

lee

unread,
Jul 22, 2011, 9:37:33 AM7/22/11
to
Swami Tota Ram Shankar <tota...@india.com> writes:

> On Jul 21, 9:54 am, lee <l...@yun.yagibdah.de> wrote:
>>
>> how can I find out the return code of a process started with
>> `start-process'?
>

> I find it interesting that an emacs fan like you did not stumble on
> this usage despite using it for many years.

How would you know how long I've been using emacs?

> Is this true in general for the emacs learning curve - and why ?

There are probably lots of users who have been using emacs for a long
time without learning everything there is to learn about it. Do you
know everything there is to know about every piece of software you're
using? If you don't, why not? :)

lee

unread,
Jul 27, 2011, 5:37:37 AM7/27/11
to
lee <l...@yun.yagibdah.de> writes:

> Hi,
>
> how can I find out the return code of a process started with
> `start-process'?

Nobody knows? Isn't it possible?

Ralf Fassel

unread,
Jul 27, 2011, 7:24:36 AM7/27/11
to
* lee <l...@yun.yagibdah.de>

| > how can I find out the return code of a process started with
| > `start-process'?
>
| Nobody knows? Isn't it possible?

Try
process-exit-status is a built-in function in `C source code'.
(process-exit-status PROCESS)
Return the exit status of PROCESS or the signal number that killed it.
If PROCESS has not yet exited or died, return 0.

See the Elisp manual
(elisp)Top:: > *Note Processes:: > Process Information
for more info about processes.

HTH
R'

Stefan Monnier

unread,
Jul 29, 2011, 3:21:19 PM7/29/11
to
> I find it interesting that an emacs fan like you did not stumble on
> this usage despite using it for many years.
> Is this true in general for the emacs learning curve

Not a year passes by without me bumping into a "new" built-in package
(typically one that's been bundled with Emacs since before I started to
help maintain it).

> and why ?

Probably for the same reason that I keep discovering new cheeses, even
though I've been an avid cheese eater for as long as I can remember.


Stefan

0 new messages