in reply to Keep a "system" process running if script is prematurely exited?
Where $! is the last process id. To do this in Perl, I tried this:# gedit & # disown $!
It starts gedit in its own window on my Ubuntu system and returns to the shell prompt. Then I close the terminal, and voila! gedit is still running. Can anyone tell us why disown is not needed in this case?# perl -e 'system q{gedit &}'
HTH,
SSF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Keep a "system" process running if script is prematurely exited?
by cdarke (Prior) on Jun 17, 2010 at 07:54 UTC | |
|
Re^2: Keep a "system" process running if script is prematurely exited?
by Anonymous Monk on Jun 17, 2010 at 06:32 UTC |