When I use nohup
I see it automatically "ignoring input and appending output to nohup.out". &
is used to tell OS to run the program in background. Then why doesn't nohup
imply &
?
1 Answer
Because the shell does not know or care what nohup
is. It just knows you said to run X, and wait for it to finish, so that is what it does.
-
-
@MichaelMa, yes;
nohup
is a program, and the & is a signal to the shell.– psusiMar 28, 2017 at 23:33