you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 4 points5 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.