jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
I have a script on a server for which I do not have the facility of setting up a cron job. The script in question simply does some house keeping and I simply need to call the script from my browser to activate it.
I set up a script on a server where I do have cron using Location: to call up the housekeeping script.
However this doesn't do the trick as in calling the script itself - it simply emails me with the URL! (Which at least reminds me to do it :))#!/usr/bin/perl -w use strict; use CGI ':standard'; my $target = "http://www.mysite.com/cgi-bin/cd.pl"; print "Location: $target\n\n";
How can I call the script in such a way as to make it run automatically?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling a script from another using cron
by Corion (Patriarch) on Feb 08, 2004 at 10:11 UTC | |
by jonnyfolk (Vicar) on Feb 08, 2004 at 12:23 UTC | |
|
Re: calling a script from another using cron
by davis (Vicar) on Feb 08, 2004 at 10:12 UTC | |
by Abigail-II (Bishop) on Feb 08, 2004 at 17:49 UTC |