About Me

My photo
Working as Technical Lead in CollabNET software private limited.

Friday 7 March, 2008

GNU Screen && nohup

These commands are useful to run commands even after closing ssh.

screen -
when you need to run the process in background with the terminal alive for further process or monitor

nohup - when you need to run the process in background with out control over the process or the monitor.

Commands for screen

To start the new screen
screen

To detach from the screen with out exiting the session
Crtl a + d

To reattach to the default first screen
screen -r

If more than one screen listed then select the appropriate screen using

screen -x {pid/name}

Command for nohup

nohup command

No comments: