S
Sean O'Dwyer
Can I pass a variable to a Perl script via cron? It seems not from the
following error message...
/bin/sh: line 1: /cgi-bin/script2.cgi?action=call_a_routine: No such
file or directory
In my crontab I have...
MAILTO="(e-mail address removed)"
HOME="/cgi-bin/"
*/5 * * * * /cgi-bin/script1.cgi
*/3 * * * * /cgi-bin/script2.cgi?action=call_a_routine
....is this just daft?
The action variable is parsed by a subroutine which then figures out
which routine to call: if ($action eq "call_a_routine") {&call_that_baby}
Solution would be to move the routines I want to call into their own
script and simply call that new script by cron. Yeah?
Ideally, for project mangement purposes, I'd like them all in the same
script, with some routines triggered via http, some called by cron. But
maybe that's asking too much....?
TIA,
Sean
following error message...
/bin/sh: line 1: /cgi-bin/script2.cgi?action=call_a_routine: No such
file or directory
In my crontab I have...
MAILTO="(e-mail address removed)"
HOME="/cgi-bin/"
*/5 * * * * /cgi-bin/script1.cgi
*/3 * * * * /cgi-bin/script2.cgi?action=call_a_routine
....is this just daft?
The action variable is parsed by a subroutine which then figures out
which routine to call: if ($action eq "call_a_routine") {&call_that_baby}
Solution would be to move the routines I want to call into their own
script and simply call that new script by cron. Yeah?
Ideally, for project mangement purposes, I'd like them all in the same
script, with some routines triggered via http, some called by cron. But
maybe that's asking too much....?
TIA,
Sean