At 23:14 06/12/01, you wrote:
>Hey I got an error on a script and went to run it from the command line to
>figure out what i forgot but to my surprise I got this:
>(offline mode: enter name=value pairs on standard input)
>
>What the he$$ is it and how can I get by it to run my script from the
>command line?

If you have a CGI script that normally receives data from a form, when you 
run it from the command line you have to have some way of getting into it 
the data that the user would normally supply via the form's controls.

You're seeing something like this:

[mo@server1 dmg]$ perl yourscript.pl
(offline mode: enter name=value pairs on standard input)

then you just enter into it data like this:

[mo@server1 dmg]$ perl bugreport.pl
(offline mode: enter name=value pairs on standard input)
name1=value1
name2=value2

where value1, value2 are the values to which you would have set controls 
name1, name2.

Then hit ctrl-D when you've entered all the pairs you need.

There's more on this in the documentation for the CGI module.

best,

Mo



Mo Holkar
Undying King Games
[EMAIL PROTECTED]
http://www.ukg.co.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to