I run

nohup bash -c "while [ true ]; do echo test; done"

from PuTTy SSH client but after this process is not runned in background instead nohup keeps to be foreground process in shell.

SW version: nohup (GNU coreutils) 8.5

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted
nohup bash -c "while [ true ]; do echo test; done" &

Nohup provides you immunity to hangup signals. But it does not automatically set the process to background.

It's the & at the end of the command that causes it to run in the background.

link|improve this answer
Thanks for the precision @Randy Orrison – M'vy Apr 12 '11 at 8:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.