Hi,
I am trying to automate a script that needs to run every other night.
When i run it from the command line:- perl limey.cgi from within the httpdocs folder of linux webserver, all is runs fine.
Then in the cron tab i have the following entry
23 1 */2 * * /var/www/vhosts/[DOMAIN NAME]/httpdocs/limey.cgi 2>&1 >> /var/www/vhosts/[DOMAIN NAME]/logs/limey.log
This is all pretty standard stuff.
Unfortunately it seems when it runs it fails to find perl modules that are included with the 'use' keyword.
The one it fails on is ;-
use lib '../lib/perl5';
This is to add some additional modules.
It seems that the relative path is causing a problem here.
Can anyone tell me the best way to run a perl cgi script that is in the public part of the website from a cron job.
Thanks very much.
Jez
I am trying to automate a script that needs to run every other night.
When i run it from the command line:- perl limey.cgi from within the httpdocs folder of linux webserver, all is runs fine.
Then in the cron tab i have the following entry
23 1 */2 * * /var/www/vhosts/[DOMAIN NAME]/httpdocs/limey.cgi 2>&1 >> /var/www/vhosts/[DOMAIN NAME]/logs/limey.log
This is all pretty standard stuff.
Unfortunately it seems when it runs it fails to find perl modules that are included with the 'use' keyword.
The one it fails on is ;-
use lib '../lib/perl5';
This is to add some additional modules.
It seems that the relative path is causing a problem here.
Can anyone tell me the best way to run a perl cgi script that is in the public part of the website from a cron job.
Thanks very much.
Jez