Friday, 22 April 2016

& vs. disown vs. nohup


<process> &
Process goes to background, blocks the read of input and shell will not wait for its completion.

disown
Removes process from the shell's control but connected to terminal.
If terminal is closed, program will fail when it will ask for reading input or writing output.

nohup
Disconnects the process from terminal and makes independent from job control.
The program will not be able to read any input but will not be halted on input.
On write, it redirects std out / err to nohup.out file and not be halted.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.