in reply to Re: How do I run .pl script from Unix command line, and pass CGI variables to it?
in thread How do I run .pl script from Unix command line, and pass CGI variables to it?

Unfortunately, I don't know how to fix my environment (actually, I don't know what's wrong with it). I was hoping by getting the summary.pl to run with some variables passed to it that it would have gotten previously I would get further along in my debugment efforts. The command line error at 56 is referring to a CGI variable that I usually would have passed to it, so it can't find the template because I haven't passed the correct variable info. (Does that make sense?)

Lori

  • Comment on Re: Re: How do I run .pl script from Unix command line, and pass CGI variables to it?

Replies are listed 'Best First'.
Re: How do I run .pl script from Unix command line, and pass CGI variables to it?
by Abigail-II (Bishop) on Dec 15, 2003 at 16:20 UTC
    Odd. CGI programs ran from the command line used to prompt the user for keyword/value pairs.

    Anyway, have you read the DEBUGGING section in the CGI.pm manual page?

    Abigail

      That's exactly what I needed. I can type in at the command line: summary.pl rpt_id=1_summary, and it passes the value of the CGI variable "rpt_id" to my script, which then ran beautimously. Thanks!

      Now, I just need to figure out why I get a "java" error on the web page, but not in Unix. More fun! ;-)

      Lori