Errors when running Perl script in a cron job
I have a Perl script that uses several pm files like XMP/RSS.pm. I can run these scripts just fine and root can run them fine but when I put them in a cron job they fail to run. Examining the log file, the error is that the file XML/RSS.pm cannot be found.
My question is what user do cron jobs run as? Is there a way to add the @INC file string to that user so that the scripts can run properly? Or am I doing something else wrong?
Thanks,
Caleb
|