[Xitami] CGI arguments passing (newbee question)
E. Egberts
xitami@lists.xitami.org
Wed, 17 Apr 2002 18:02:59 +0200
Thanks for your reactiom.
As far as I know, the values of the command line get in Perl assigned to an
array called @ARGV. It is a library function as far as I understand. I am a
newbee to Perl so I may be missing something.
-----Oorspronkelijk bericht-----
Van: xitami-admin@lists.xitami.org
[mailto:xitami-admin@lists.xitami.org]Namens Francis Turner
Verzonden: woensdag 17 april 2002 14:12
Aan: xitami@lists.xitami.org
Onderwerp: Re: [Xitami] CGI arguments passing (newbee question)
E. Egberts wrote:
>Hi,
>
>I'm trying to implement a couple of Perl scripts which expect their
>arguments in the $ARGV array. Can I configure the Xitami web server
(version
>2.4d9) such that arguments are passed through this array in stead of the
CGI
>envirionment variable QUERY_STRING?
>
No.
However it should be relatively trivial to parse either <STDIN> or
$ENV{'QUERY_STRING'} to create a suitable array. The problem is that the
output of a program that uses a CLI fo its arguments is unlikely to
suitable for display on a webserver as it won't generate HTML. What you
probably need to do is create a wrapper progrm (using for example the
CGI.pm library) that you can then wrap around all these scripts.
Francis
--
...if the US Government were ever to get really serious about Internet
security, the top players in Microsoft's management hierarchy would find
themselves handcuffed, blindfolded, led onto a tarmac within some obscure
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)
--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami