Unable to run the cronjob in ubuntu 10.10 server, EC2 instance
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
Are you aware that the global crontab (/etc/crontab) has a user field:
# m h dom mon dow user command
While the crontab of a user (reachable by running crontab -e as a user) does not?
# m h dom mon dow command
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.