in reply to Re^4: Commenting out carpout causes script to hang
in thread Commenting out carpout causes script to hang

CGI (the module) scripts can be run be from the prompt. See the "DEBUGGING" section.

Or you could add statements that print the script's progress to a log. Don't forget to (auto-)flush.

  • Comment on Re^5: Commenting out carpout causes script to hang

Replies are listed 'Best First'.
Re^6: Commenting out carpout causes script to hang
by punch_card_don (Curate) on Oct 10, 2007 at 17:18 UTC
    OK, just read the debugging section of CGI.pm - very cool. Thanks. That gets the parameters set.

    But the script uses the .htaccess username to identify the records to retrieve and gets it like this:

    $username = $ENV{'REMOTE_USER'};
    and I dont see in the documentation how to get that from the command line.


    UPDATE: But nevermind - I'll just set the username programmatically temporarily.

      One way in bash:

      REMOTE_USER=ikegami example.cgi ...