You may well find that PATH is not being set by cron as it is not sourcing in .bashrc or .profile - this is expected and normal behaviour.
You have access to PATH as $ENV{PATH}, which you can set inside your script before you fork. %ENV is available for dumping out for debugging purposes.
--
Oh Lord, wont you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, wont you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
Looks from the diagnostic that the problem might be with $ENV{LD_LIBRARY_PATH} rather than $ENV{PATH}. Which flavour of Unix are you running?
By the way, for readability, could you please put <code> tags around your output.
--
Oh Lord, wont you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, wont you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
Phil
Phil
Part of my job is to babysit cron jobs and I totally agree. The secret to environmental harmony is to be independent of it to the extent possible.
foo($path)needs to act on a
/full/path.
perlmonks.org content © perlmonks.org and madizen, philcrow, rinceWind, tc1364
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03