Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Commenting out carpout causes script to hang

by ikegami (Patriarch)
on Oct 10, 2007 at 16:59 UTC ( [id://644028]=note: print w/replies, xml ) Need Help??


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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://644028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found