nohup as background task does NOT return prompt

前端 未结 1 1198
谎友^
谎友^ 2021-02-07 08:25

I am trying to run a long running task in the background without having to be logged in and have the terminal return a prompt, but when I do this, the task appears to go into th

相关标签:
1条回答
  • 2021-02-07 09:04

    You should have your prompt available because your command will be sent to the background. It is possible that you are not seeing your prompt because your command is still delivering stderr messages to your console. Try using > test.txt 2>&1 </dev/null &.

    0 讨论(0)
提交回复
热议问题