what is the major difference between startproc and nohup ?
I am using the bash shell. I frequently use nohup to ensure that my processes are not stopped when I close the shell/terminal that started them. I use a syntax like:
When starting, nohup gives the message:
nohup: ignoring input and appending output to 'nohup.out'
Then, nohup gives no more output to the screen; it is all written to nohup.out.
In zsh, setopt nohup seems to be required to make nohup works, as follows:
# nohup does not work without setopt nohup
➜ /tmp zsh
➜ /tmp nohup watch ls &
nohup: ignoring input and appending output to ‘nohup.out’