I have this in my crontab:
PATH=/usr/bin:/usr/local/bin:$PATH
*/1 * * * * /usr/bin/env bash > ~/cron.log 2>&1
The ouput in cron.log
is the following:
/usr/bin/env bash: No such file or directory
/usr/bin/env
as well as /bin/bash
both exist. And I can also run this command from the same user to whom this crontab belongs without any errors. I also tried adding
SHELL=/bin/bash
to the top of the crontab. No effect. Don't have a clue what's going on. Also this:
*/1 * * * * which bash > ~/cron.log 2>&1
shows nothing at all in the log file. This is everything I have in my crontab for this user, nothing else.
`which bash`
, instead ofwhich bash
?