python script see traceback when running as background
I have a python script running like this on my server:
python script.py &
The script works fine, but constantly I'm adding new things to the script
and re-running it, somedays it runs for days without any problem, but
sometimes the script stops running (Not running out of memory), but since
I started the script as background I have no idea how to check for the
Exception or error that cause the script to stop running. I'm on a Ubuntu
server box running in Amazon. Any advice on how to approach this
inconvenience ?
No comments:
Post a Comment