strange problem..program not working through web form.

From: seemanta dutta (seemanta_18_at_yahoo.com)
Date: 02/06/04


Date: 6 Feb 2004 05:31:02 -0800

Hi,
I have a simple form which when clicked mails a user via the cgi script.

But the problem is that when I run the script from the commandline it works well.
but the moment I try to do it via the form it simply fails.
here's the cgi script:(mail.pl)

#!/usr/bin/perl -w

system("cat mail.txt | /bin/mail -s hello foo\@foobar.com");

printf "Content-type: text/html\n\n";
printf "wait...\n" ;

and here is the form:(mail.html)

<html>

<p> Just click and Submit!! </p>
<form method=GET action="/cgi-bin/mail.pl">
<input type="submit" name="sub_button" value="Click!" >
</form>

</html>

P.S. I have mail installed on my system and it works fine from the shell.
it does not only via the webserver.

please help,

thanks in advance,
regards,
Seemanta



Relevant Pages

  • Re: Unicode issue with Python v3.3
    ... | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: ... That is standard for a CGI script that does not complete successfully. ... Otherwise you need to find the httpd.conf for the apache and look ... The error log is where error messages from CGI scripts go. ...
    (comp.lang.python)
  • Re: Unicode issue with Python v3.3
    ... | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: ... That is standard for a CGI script that does not complete successfully. ... Otherwise you need to find the httpd.conf for the apache and look ... The error log is where error messages from CGI scripts go. ...
    (comp.lang.python)
  • Re: Installing modules on shared server
    ... Well, to begin with, MANPATH specifies where 'man' will look for man pages, ... See the man page for your shell if you're using a different one. ... Finally, keep in mind that, if you're writing a CGI script, it won't have ... won't effect CGI scripts. ...
    (comp.lang.perl.misc)
  • Re: Unicode issue with Python v3.3
    ... | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: ... That is standard for a CGI script that does not complete successfully. ... The error log is where error messages from CGI scripts go. ... are you sure python3 is running your CGI script? ...
    (comp.lang.python)
  • Re: webserverless Python Wiki Engines: do they exists?
    ... David M. Cooke said unto the world upon 2004-10-07 23:24: ... >>Apache, IIS, or some other form of webserver. ... Assuming the CGI script is in a directory ... Moin-moin solution doesn't have the same result. ...
    (comp.lang.python)