in reply to calling a script from another using cron
However this doesn't do the trick as in calling the script itself - it simply emails me with the URLOf course it does. Look at what your script does - it only prints a text string.
#!/usr/bin/perl use warnings; use strict; use LWP::Simple; my $target = "http://www.mysite.com/cgi-bin/cd.pl"; $content = get($target); #Actually send the request to the webserver die "Couldn't get $target!" unless defined $content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling a script from another using cron
by Abigail-II (Bishop) on Feb 08, 2004 at 17:49 UTC |