Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    If you prefer to have the output of your commands on the tty itself, tmux is the tool you want to use (and your only choice, as neither "nohup" nor "at" prints the output to your tty). Install tmux on your VPS, then try this: ssh into your VPS --> execute "tmux" --> execute "while true; do echo test; sleep 1; done" (you will see "test" printed out each second) --> press Ctrl+B, then press "d" to detach your session --> execute "exit" to disconnect from your VPS --> ssh into it again --> execute "tmux attach" and you will see that, while you were disconnected, the loop kept working. Commented Dec 29, 2016 at 22:01
  • Any way to auto disabling this message about output redirected to /home/user/nohup.out ? Commented Dec 29, 2016 at 22:10
  • 1
    Yes, if you don't want the "nohup.out" message from showing, you can add "2>/dev/null" at the end of the command from option 3, before the "&". Thus, the complete command would be ---> nohup bash -c " ...your commands here... ; kill $$" 2>/dev/null & Commented Dec 29, 2016 at 22:10
  • Also, if you have new questions please create new ones. Commented Dec 29, 2016 at 22:23
  • 1
    Yes, and I deleted comments that might heavy on newcomers. It's good your replies are there as it helps. It now worked. Thank you for everything. A few days I ate straw with this and you helped me in a dark time. Commented Dec 29, 2016 at 22:26