I have a AWS EC2 instance with ubuntu 10.10 server.
I am trying to add a cron job to the list. But the cron job is not being executed.
I am actually uploading a particular file to aws s3 using s3cmd visit s3tools.org
What will be in the problem and also the solution.
Kindly help me out
Here is the bash script which has to be run
s3cmd put file-name s3://bucket_name/foder_name/file-name
Here is the job
bash /path/to/file.sh
Are you aware that the global crontab (/etc/crontab) has a user field:
While the crontab of a user (reachable by running crontab -e as a user) does not?
This drove me crazy once: cron was failing relatively silently…
That said, try and make a very simple cron entry, maybe directly inline, that touches a file in a writeable folder. This way you’ll figure out if it’s your script or cron that’s being difficult.