Sunday, 10 July 2011

Linux - Run command as a background process

To run a command as a background process you must append & to the end of the command when issuing:
$ <command> &
If you wish the command to continue running even when you have logged off, you need to issue nohup at the beginning of the command:
$ nohup <command>
If you wish to run the command in the background even when you are logged off you should append with nohup and &:
$ nohup <command> &

No comments:

Post a Comment

Please feel free to leave a comment