perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Maas" <>
Subject RE: How to pass parameters from the UNIX command line ?
Date Fri, 08 Aug 2003 12:57:39 GMT
> I'd like to make a cron job to source the above PERL script as from
> the command line to resemble something like:
> perl /usr/local/apache/cgi-bin/   << need to pass the
> parameter here as cust_id=x 

I am very doubtful if running a mod_perl script from the commandline
would make any sense... There is no Apache:: in that context to name
something. You could do something tacky with Apache::FakeRequest, but
it's far better to write a proper, not web-tuned, script to do the
chore. Or use GET from the commandline with the uri behind it. This 
makes it a proper request to your webserver, issued from the command-
line (or crontab in this case).


View raw message