Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keep bg process alive on logout

Status
Not open for further replies.

ryan101

Programmer
Jul 11, 2001
13
US
Anyone know if it's possible to bg a process and keep it running even after logout? I've tried nohup, but it's an irc client so I need to interact when I bring it into the foreground.

Ideally I'd like to be able to ssh into my server, launch the program and when I'm ready to log out, Ctrl-Z and bg the process, exit my ssh and login again from a different machine and bring the same process to the foreground.

Basically I don't want to leave the chatroom when I switch machines.
 
Hi,

Check out screen application. With screen, you can attach and detach.

dbase77
 
Hi,

you can't use "&" as it will kill the process when you logout. Since he want to use IRC, usually screen is your friend. There is no way you can use nohup as you need to re-attach afterward.

dbase77
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top