Click to See Complete Forum and Search --> : Programs to run after logout


Hena
10-05-2001, 08:27 AM
Is there a way to make programs run even if the user logs out? Putting them on background (shell and &) doesn't do this.

Hena
10-05-2001, 08:29 AM
I want to keep in shell level (not fancy gui thingy) so that users who log in thu ssh w/o xwindow connection could do it too. I'm running RH7.1.

FroggySwamp
10-05-2001, 09:21 AM
Hey,

What about using screen? I use that sometimes to run a program like a game server or whatever that I may need to come back to that accepts commands while running. The man page for screen is very good also :D

rch-tech
10-05-2001, 09:32 AM
Isn't it something like "nohup"
I can't remember if nohup is a flag or if you type:

EXAMPLE:
nohup myscript.sh &
and then when you log back in assuming its still running I believe you could to an fg myscript.sh to bring it back...not sure though...I am a bit rusty.

Craig McPherson
10-05-2001, 03:39 PM
The standard way is to just use open.

open commandname

That'll divorce the proccess from the current console, so it will continue to run even after the shell exists.

screen should work also, and nohup may work but that's not really what it was intended for.

[ 05 October 2001: Message edited by: Craig McPherson ]