aws2 command is not working when written in a .command file and scheduled using crontab

191 views Asked by At

I have written a command file in mac which puts a particular file recognized by temp_todaysdate into s3 bucket and I am also printing size of the file(temp_todaysdate). When I am running this file manually in terminal, it is working fine i.e it is printing the size of file as well as putting the file to s3 bucket.

But when I am scheduling a cronjob to run this commnad file daily. I am getting a mail with the following error:

Size of file: 66520
./Bucket.command:line 10: aws2: command not found.

What can be done to resolve this error. Please help

0

There are 0 answers