in reply to Re: Running a CGI script from a command line?
in thread Running a CGI script from a command line?

A fun approach; maybe overkill here. It’s multi-arg system that avoids the shell, not capture.

Replies are listed 'Best First'.
Re^3: Running a CGI script from a command line?
by shanen (Initiate) on Jun 16, 2015 at 05:35 UTC
    Unsure of protocol, but this is just a first ACK. The 1st reply was included in my early experiments, but I tested it again. The 3rd reply looks promising, but I'm working from the 2nd reply now... My ignorance remains profound, but I suspect I can clap the third hand.
      Just a second ACK. From studying the debugging docs in the 2nd reply, it appears that I was doing the correct thing, and yet it does not work. From running with the -w parameter I found a trivial mistake to fix. From running with the -d parameter, I received the mixed blessing of reams of unknown data. Time for meditation.
Re^3: Running a CGI script from a command line?
by Anonymous Monk on Jun 16, 2015 at 06:33 UTC

    A fun approach; maybe overkill here. It’s multi-arg system that avoids the shell, not capture.

    Well sure :) but if you don't capture it, it just goes into the regular place, at which point, the question becomes, why not do a redirect instead?

    Oh right, the OP didn't ask that exactly, that was just the question that brought me to this question (from a cgi execute another cgi) ... looked close enough :)

      I am doing some sort of redirect, in that the HTML output of the original PERL file is properly captured into a file that I can then load in a browser.

      I think I am skipping over some extremely low level of ignorance here. The answer is doubtless "intuitively obvious to the most casual observer", but I am evidently too tense?

        I am doing some sort of redirect, in that the HTML output of the original PERL file is properly captured into a file that I can then load in a browser.

        I think I am skipping over some extremely low level of ignorance here. The answer is doubtless "intuitively obvious to the most casual observer", but I am evidently too tense?

        So have you considered installing a webserver to run your "cgi" ?

        apacheet (Plack::App::CGIBin),