Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

I have some problem with Crontab

by satishkambam (Initiate)
on Nov 15, 2011 at 08:42 UTC ( [id://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

Replies are listed 'Best First'.
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 reisinge (Hermit) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found