[SLE] [Help] Foreground and background process
Hi, I'm running Distributed.net's number cruncher and place it into the background with the & at the end of the command and all has worked well. The problem is when I leave the keyboard I want to log off for security and come back sometime later and bring the process to the foreground again. When I type Jobs -l no jobs show up. I can see the process running when I "ps -ax". What am I missing here? I've read some fine material, but have not found my answer yet. Thanks again Bryn Joynes -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Tue, Apr 04 2000 at 01:31 -0500, Bryn Joynes wrote:
I'm running Distributed.net's number cruncher and place it into the background with the & at the end of the command and all has worked well. The problem is when I leave the keyboard I want to log off for security and come back sometime later and bring the process to the foreground again. When I type Jobs -l no jobs show up. I can see the process running when I "ps -ax". What am I missing here? I've read some fine material, but have not found my answer yet.
When you log out your shell sends a SIGHUP to all its children. Usually that terminates the child processes. You can prevent this by starting your program with nohup program & or trap "" 1; program & or program &! (the last one only in the Z-Shell). But with all these there is no way to bring to process back into foreground after you logged in again (at least AFAIK). Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Thank you all so much for your help. I have learnt so much from the responses you have given. The fact that an in depth answer was given also helped tremendously. I hope some other people have got as much out of this as I have. Once again thank you for the unselfish help... Best Regards Bryn Joynes -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
bjoynes@edge.net
-
stefan.troeger@wirtschaft.tu-chemnitz.de