Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: The "Perl script on command line works but as cronjob it fails" story revisited

by Corion (Pope)
on Mar 05, 2013 at 11:08 UTC ( #1021803=note: print w/ replies, xml ) Need Help??


in reply to The "Perl script on command line works but as cronjob it fails" story revisited

There are a lot of things that you could still test in production to narrow down the error possibilities:

  1. Is /usr/local/bin/distaster.pl readable by karl?
  2. Is the /usr/local/bin/distaster.pl executable by karl?
  3. Can karl outside of cron run the script?
  4. Is the hashbang line (=first line) of the script #!/usr/bin/perl?
  5. Is SELinux interfering with command execution from cron?


Comment on Re: The "Perl script on command line works but as cronjob it fails" story revisited
Select or Download Code
Re^2: The "Perl script on command line works but as cronjob it fails" story revisited
by karlgoethebier (Curate) on Mar 05, 2013 at 11:12 UTC

    Hi Corion, i did this all...Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-09-16 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (9 votes), past polls