Thursday, March 31, 2016

bash - Python script crashes when run via Cron

I have a python script that completes exactly as expected when run manually as the root user. When I put the script into cron.daily it crashes 100% of the time.



The error is a timeout error, but this question is not about troubleshooting the error directly.



Executing this works:



$ /etc/cron.daily/myscript



But it crashes when run automatically via cron.



The Question: What is different about a root bash shell and the environment /etc/cron.daily executes in?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...