S
Sean O'Dwyer
Hi,
I have a Perl script running on an apache server which contains the
following lines:
require('../variables-global.pl');
require('variables-local.pl');
When I call the script manually, via http, it works fine. But when it
runs automaticaly via cron I get an e-mail from the cron daemon saying
"Can't locate ../variables-global.pl at line such-and-such".
I might be missing something here about how Apache runs each call to the
script as its own process and user.
My plan to try and solve the problem is to specify absolute paths to
both these files, but I'm not sure how to do this (may be a question for
an Apache NG, I realize).
I need the script to be callable both automatically by cron and manually
by http. Is that possible? Any help appreciated.
Kind regards,
Sean
I have a Perl script running on an apache server which contains the
following lines:
require('../variables-global.pl');
require('variables-local.pl');
When I call the script manually, via http, it works fine. But when it
runs automaticaly via cron I get an e-mail from the cron daemon saying
"Can't locate ../variables-global.pl at line such-and-such".
I might be missing something here about how Apache runs each call to the
script as its own process and user.
My plan to try and solve the problem is to specify absolute paths to
both these files, but I'm not sure how to do this (may be a question for
an Apache NG, I realize).
I need the script to be callable both automatically by cron and manually
by http. Is that possible? Any help appreciated.
Kind regards,
Sean