I am running an EC2 AWS instance, I have a range of commands and scripts that run well but will not execute within a crontab. Here are the contents of the Crontab:
15 03 * * * pythonscript1.py
45 03 * * * pythonscript2.py
00 05 * * * gsjson 1z5OlqsyU5N2ze1JYHJssfe1LpKNvsr4j8TDGnvyuaDZ gsheet.json
05 05 * * * s3cmd put gsheet.json -P -f s3://mybucket772
Do I need the path of the python program within EC2? gsjson was installed as a NPM package using NodeJS and S3cmd is a command line tool I installed.
https://s1.postimg.org/nu4zfb22n/ec2-filetree.jpg
I assume I might the programs path within cron but I'm not sure what command I need to get this. Or maybe I should the wrap the last 2 commands in a .js file and point to that?
via Stix5
No comments:
Post a Comment