My cron tasks report command not found [duplicate]
The deafult PATH for CRON jobs is usually /usr/bin:/bin
. Your commands bundle
and backup
are likely not in the default path. One solution is to change your crontab and include the full path to these commands.
0 0,6,12,18 * * * cd /var/www/app/current && /path/to/backup ...
etc. In general it's a good idea to use full paths in crontabs. If you want you can also specify the PTH inside the crontab
PATH=/bin:/usr/bin:/path/to/your/program
0 0,6,12,18 * * * cd /var/www/app/current && backup ...
Yes, you can set path before actual crontab records, eg:
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:
0 3 * * * run-cron-job