nohup bash -c "while [ true ]; do echo test; done"
PuTTy SSH client, but after this process is not running in background instead
nohup keeps to be foreground process in shell.
nohup (GNU coreutils) 8.5
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.