Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Trying to code a SENDMAIL functions, and when running I get a

by Anonymous Monk
on Dec 11, 2000 at 10:36 UTC ( #46039=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Then it prompts me for "enter name=value pairs on standard input> Please help, tell where I've gone wrong. If I have gone worng.
  • Comment on Trying to code a SENDMAIL functions, and when running I get a

Replies are listed 'Best First'.
Re: Trying to code a SENDMAIL functions, and when running I get a
by Fastolfe (Vicar) on Dec 11, 2000 at 18:56 UTC
    This is standard behavior with the CGI module. Since you're coding your script with it, I'm assuming you're trying to build a CGI script. For that reason, when you run your script from the command-line, CGI.pm notices this and assumes you are developing/trying to test your CGI script and gives you the means to pass form variables to it. See the CGI documentation. If you'd just like to go ahead and run the script without arguments, send it an EOF (ctrl-D under Unix) to signal the end of your variables.

    If you are not trying to write a CGI script, you should remove the 'use CGI' line.

Re: Trying to code a SENDMAIL functions, and when running I get a
by marius (Hermit) on Dec 11, 2000 at 12:29 UTC
    Sounds like you're trying to run a CGI.pm module from the command line. Basically, if you're not passing any variables into the script, just hit CTRL+D to signal EOF. If you need to pass parameters to the script, put them as variable=value format, one per line.

    Incidentally, you would pass variables to the file if your url looks like http://some.url/cgi.pl?variable1=value&variable2=value

    -marius
Re: Trying to code a SENDMAIL functions, and when running I get a
by reyjrar (Hermit) on Dec 11, 2000 at 20:44 UTC
    You're running a "cgi" script from the command line more than likely. check to see if it 'use CGI'. If its meant to be a CGI script, test it with a browser, if not, remove all the CGI stuff from the code. I can't tell much more from the desc, and this post probly should be in SOPW.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-10-20 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (114 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!