in reply to I have some problem with Crontab

Error : /usr/bin/env: No such file or directory

Seems self explanatory

Do you have a /usr/bin/env program?

When your program is run from cron, it doesn't have the same %ENV as when you run it

It appears in your case, cron jobs might also confined in a chroot jail, so your shebang of #!/usr/bin/env perl .. doesn't work

So, either use the correct path to env, or the full path to perl, or learn more about configuring cron, or get your admin to help...

Replies are listed 'Best First'.
Re^2: I have some problem with Crontab
by locked_user satishkambam (Initiate) on Nov 15, 2011 at 09:34 UTC
    Hi , Yes iam using /usr/bin/env this . i don,t find the env setup for crontab .can you help me on this . thank you

      Hi , Yes iam using /usr/bin/env this . i don,t find the env setup for crontab .can you help me on this . thank you

      um, does /usr/bin/env exist, yes or no?

      The code snippet you posted contains no shebang line, what is it?

      What did your admin say?

        #!/usr/bin/env ruby