/usr/bin/env and crontab

Hello all.

I have a little issue with some scripts that I try to run from crontab. These scripts use /usr/bin/env bash or python, like scamp and a python script from baruwa. If I run them manually it works, but if I run the script with cron I get the following

For my python script it is this.
Code:
env: python: No such file or directory

for the scamp script it give me this.
Code:
env: bash: No such file or directory

What can I do to make /usr/bin/env work through crontab.

Thanks for your time.

regards,
Johan
 
Yes, scripts run from cron have a very limited environment, which includes $PATH.
 
Back
Top