in reply to Twig in a crontab?
Not that it's strictly speaking a perl problem, but processes run from cron don't run with the same environment as your normal login shell sets up. Look in your .profile / .bashrc / whatnot for environment variables such as LD_LIBRARY_PATH and what not and either add those to your cron command line, write a shell wrapper which sets them then runs your perl, or set them in a BEGIN block in your code (e.g. BEGIN { $ENV{LD_LIBRARY_PATH} = q{...}; }).
Failing that, find your local sysadmin and they'll probably be able to tell you what needs to be set.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Twig in a crontab?
by BenHopkins (Sexton) on Jan 31, 2008 at 05:56 UTC | |
by sids (Acolyte) on Jan 31, 2008 at 06:22 UTC | |
by BenHopkins (Sexton) on Jan 31, 2008 at 06:47 UTC | |
by MidLifeXis (Monsignor) on Jan 31, 2008 at 18:03 UTC | |
by BenHopkins (Sexton) on Jan 31, 2008 at 07:31 UTC | |
by Fletch (Bishop) on Jan 31, 2008 at 13:52 UTC |