Does nohup work across a pipe?

前端 未结 5 2011
悲哀的现实
悲哀的现实 2020-12-23 20:53

If I do

nohup cmd1 | cmd2 &

is that the same as

nohup \"cmd1 | cmd2\" &

?

I would like th

5条回答
  •  时光说笑
    2020-12-23 21:02

    You could start your pipe in a screen session. Keystroke Ctrl-a and then d will detach the screen session from your terminal. You can then safely exit your terminal; the pipe will continue to run. Use screen -r to reconnect to the session again.

提交回复
热议问题