in reply to calling a script from another using cron
This is not how http works.
Your cron script will need to make a http request to your other server and trigger the worker script there. The easiest way is to use LWP::Simple :
use strict; use LWP::Simple; my $url = 'http://www.example.com'; get $url or die "Couldn't retrieve $url";
Your script simply did one thing, as you witnessed already, it just printed out the location, which does not accomplish anything unless you are a browser that interprets the Location: header as something to act upon...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: calling a script from another using cron
by jonnyfolk (Vicar) on Feb 08, 2004 at 12:23 UTC |