Richard Thompson wrote:
>
> We have moved a website off a server outside our offices to one inside. everything
>went fine but one of our cgi is not working so using some info shared in this forum
>we tried to run from the command line. now here is the problem we cannot get it to
>pass the arg.
>
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.
The reason you might want to run a cgi script via command line is to
check that it compiles and runs without errors. After that it's a
matter of debugging the script in the web environment.
Perl scripts run from a command line have access to command line values
via the @ARGV array. Unless this script does something with @ARGV, the
command line params will not be available to it.
Dan