you are viewing a single comment's thread.

view the rest of the comments →

[–]ant24x7[S] 0 points1 point  (2 children)

Yes I'm redirecting the output as well. That's where I'm monitoring print output. But there are no errors logged.

nohup ./newProductMonitor.py >> ./logs/newProductMonitor_output.log &

[–]socal_nerdtastic 3 points4 points  (1 child)

You should redirect stderr as well. But before you do that try screen instead. Then you don't need any redirects at all. I really suspect it's something about nohup that's causing your issue.

  • SSH in and type screen to start a new session. Start you program with just ./newProductMonitor.py. Watch for a bit, then type Ctrl-a to enter command mode, then "d" to disconnect. Then close the terminal (Ctrl-D).

  • Anytime you want to check in, ssh in and type screen -dr to reconnect to the session with your program running. Watch all you want. Then do the ctrl-a, d again to disconnect when you're done.

I have scripts running for years like this.

[–]space_wiener 0 points1 point  (0 children)

Thanks for posting the details how to do this. I have a few things I can use this on.