Dan Brown wrote:
: If it really is a script written for cgi, sending arguments via command
: line won't work.  When a cgi script runs information is available to
: that script because the web server provides an environment from which
: the script can access the information.

If the script is written using CGI.pm, then it will be able to pick up
input from the command line:

% my_cgi_script foo=bar

etc. In fact, if you run a CGI.pm script from the command line with no
arguments, it will say:

(offline mode: enter name=value pairs on standard input)

so you can enter them via stdin.

If it doesn't use CGI.pm, it should. ;)

-- tdk

Reply via email to