My script mystreaming.py listens to Twitter Streaming API (from my feed) and inserts tweets into the MySQL table. It works, fully tested. However, now I want this command to keep executing even when I exit from a shell prompt (I need to let it run on my node in linode). I use nohup, but it doesn't seem to get the job done.
So I'm doing:
nohup mysql &
nohup python mystreaming.py < /dev/null > /dev/null 2>&1 &
However, when I check my tables, looks like the most recent tweet was before 11:59pm, and nothing is added after that. However, clearly new tweets were posted on my feed since then. Any idea what can cause this problem? Thanks a lot!