Wednesday, August 1, 2018

linux - 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



* * * * * bash /path/to/file.sh 


Answer



I was able to figure out the solution for this. The problem was I need to specify absolute path thats /usr/local/bin/s3cmd .


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...