[sclug] Leave a process running after logging out?
Ian Michell
ian.michell at hanzi.co.uk
Thu Feb 17 12:39:53 UTC 2005
Personally I would suggest using screen, it is a far better solution for
bash scripts as you can put screen into the background and recall them
from any terminal after that using screen -r screen-session.
James Wyper wrote:
>My preferred way of doing this, which may be overkill and may not be
>suitable for you, but at least is idiot-proof, is to set up a VNC
>server on the box to run at bootup and log in to that. If you close the
>VNC client then it doesn't affect the server. It also allows you to
>check progress from anywhere that can connect to the server (and that
>you've allowed access to in the VNC config / your firewall).
>
>This suits my circumstances quite well (always-on linux box in the
>garage; other occasionally-on computers that I flit between in warmer
>parts of the house).
>
>FreeNX should do the same thing more efficiently but I haven't had a
>chance to install it yet.
>
>James.
>
> --- Sapan Ganguly <sapan.ganguly at gmail.com> wrote:
>
>
>>Hello, I haven't posted here for a long time. I have a question
>>which
>>probably has a simple answer.
>>
>>I am forever starting commands in a bash shell that take longer than
>>I
>>expect, is there a way to background or pause a task that is already
>>in the foreground AND log off and go home (but still see the results
>>when I log on again in the morning)? Sometimes I forget to use
>>things
>>like 'screen', 'nohup' etc. If I use Ctrl-Z the process is still
>>killed when I log off.
>>
>>Oh, another question, would 'nohup' stop a process being killed even
>>if I log out of my shell?
>>
>>Any ideas?
>>
>>Thanks,
>>Sapan
>>_______________________________________________
>>sclug mailing list
>>sclug at sclug.org.uk
>>http://www.sclug.org.uk/mailman/listinfo/sclug
>>
>>
>>
>
>
>
>
>
>___________________________________________________________
>ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
>_______________________________________________
>sclug mailing list
>sclug at sclug.org.uk
>http://www.sclug.org.uk/mailman/listinfo/sclug
>
>
>
>
More information about the Sclug
mailing list