in reply to Re: 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?

I'd say, fix your environment first so that you can run your program from the command line. Now you're getting all kinds of file not found errors unrelated to your original problem.

Abigail

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

Replies are listed 'Best First'.
Re: Re: How do I run .pl script from Unix command line, and pass CGI variables to it?
by Lori713 (Pilgrim) on Dec 15, 2003 at 16:03 UTC
    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

      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