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 (Vicar) 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 perusing the Monastery: (7)
As of 2015-07-04 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls