comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » SPAWN background command without nohup?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
SPAWN background command without nohup? [message #88861] Sat, 28 June 2014 08:27 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
Dear Folks,

Using SPAWN to start a background process on unix-like systems
can leave the process running even after the IDL process terminates.
I'd like to arrange things so that the child process is killed when IDL exits.

Here's a schematic example:

IDL> spawn, 'myprocess &', pid=pid
IDL> print, pid
62417
IDL> exit

$ ps | grep 62417
grier 62417 0.0 0.1 2473856 12320 ?? S 10:41AM 0:00.02 myprocess

This is similar to running a shell command with nohup:
$ nohup myprocess &
$ exit

Is there a way to make IDL spawn a child process that terminates when
the parent IDL session terminates?

All the best,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with SPAWN command in IDL code
Next Topic: Problem in performing band operation on image file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:33:44 PDT 2025

Total time taken to generate the page: 0.00443 seconds