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 URL
Of course it does. Look at what your script does - it only prints a text string.
You want it to masquerade as a browser - use LWP::Simple (there are many, many other choices as well).
#!/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;


davis
It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.

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
    Or you could simple make use of the GET utility that comes with LWP, and put
    * * * * * /path/to/GET http://www.mysite.com/cgi-bin/cd.pl > /dev/ +null
    in the crontab file. No additional program needed.

    Abigail