I have this ultra simple cron job:
48 20 * * * cd /home/pankaj;s3cmd -f get s3://myfile.gz
The command works by itself. But the cron job does not. The cron job is created for the same user(pankaj) who is able to run the command. There is not much information in /var/log/syslog either.
Oct 15 20:48:01 dev CRON[17020]: (pankaj) CMD (cd /home/pankaj;s3cmd -f get s3://myfile.gz)
Oct 15 20:48:01 dev CRON[17019]: (CRON) info (No MTA installed, discarding output)
How can I find out what is going wrong? The permissions of .s3cfg are like these:
pankaj@dev:~$ ls -l .s3cfg
-rw------- 1 pankaj pankaj 2050 Feb 7 2018 .s3cfg
s3cmd
script? Try to use absolute path to this script and add option to point to the config file ;) I think you setup this cron job on root account but.s3cfg
file is inpankaj
HOMEDIR.