Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

I have some problem with Crontab

by satishkambam (Initiate)
on Nov 15, 2011 at 08:42 UTC ( #938105=perlquestion: print w/ replies, xml ) Need Help??
satishkambam has asked for the wisdom of the Perl Monks concerning the following question:

Hi Iam using crontab . Here is my small code ..perl file name is : results.pl
open(IN,"/home/kiran/results_path.txt"); @fi=<IN>; foreach $script (@fi) { system($script); } close IN;
-----
56 10 * * * results.pl
using crontab iam planning to run that file . can you please help me on this ?
Error : /usr/bin/env: No such file or directory

Comment on I have some problem with Crontab
Select or Download Code
Re: I have some problem with Crontab
by Anonymous Monk on Nov 15, 2011 at 09:07 UTC

    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...

      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?

Re: I have some problem with Crontab
by j0se (Pilgrim) on Nov 15, 2011 at 20:59 UTC
    Please put <code> </code> tags around your code and data!

    Have a nice day, j

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://938105]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2014-10-21 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (103 votes), past polls