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

Re^2: Perl Module Not Working In Crontab

by Anonymous Monk
on Jan 10, 2012 at 09:06 UTC ( #947116=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Module Not Working In Crontab
in thread Perl Module Not Working In Crontab

basically the Perl module Archive::Extract works manually but will not work via crontab -

:D

"does not work" is not diagnostic :)

Mechanic, Mechanic, my car doesn't work?

But sir, that is refrigerator!

:D

more comedy here

turn on debugging, all things have debugging, even crontab

$Archive::Extract::DEBUG = 1;

Start reading these to see a typical crontab story :) The problem is usually basic path managment. A relative path to the program, wrong path to perl on shebang, an assumed Cwd, wrong module path ( %INC ) or other %ENV , wrong permissions, not checking for errors, not reading error messages, wrong path again :)

  • Comment on Re^2: Perl Module Not Working In Crontab

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://947116]
help
Chatterbox?
[ambrus]: The 0.2 seconds wakeup is likely a workaround for some bug, but I can't guess what bug that is.
[ambrus]: It's been there since Prima 1.00 iirc
[Corion]: Hmmm... Weird. Maybe it needs that for doing its timers or something. Still weird.
[Corion]: But I guess I'll find out soonish, as my application seems to use Prima for more than just displaying the OpenGL output soonish ;))
[ambrus]: No, I think the timers are handled fine in the event loop, as far as I can see.
[Corion]: So far, I liked Prima quite well as it simply seems to do what I want even if it has an upside-down coordinate system. But it installs from CPAN out of the box and is cross-platform

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2016-12-09 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.