You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tomuser <na...@email.com> on 2007/09/28 15:34:27 UTC

Tomcat-CGI-BLAT.EXE

Problem with TOMCAT/CGI/BLAT.EXE
I wrote these two files in the appropriate position of TOMCAT (test.html and
test.cgi).
Everything set according to specifications (CGI,..).
I tried to send to myself a simple mail via blat.exe.

<HTML> 
<HEAD> 
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<FORM METHOD="post" ACTION="cgi-bin/test.cgi">
<INPUT TYPE=submit VALUE="SEND">
</FORM>
</BODY> 
</HTML> 

#!c:\perl\bin\perl.exe 
    print "Content-type: text/html\n\n";
    $commandline= "blat.exe test.txt -t myname\@xx.yy -f myname\@xx.yy -s
\"Object Test \" 
                 -server mail.xx.yy";
    print "\$commandline \=" , $commandline,"\n";
    system ($commandline);

Then I wrote "http://localhost:8080/blat/test.html , receiving the following
error 
(return-newline added by myself for this note):


$commandline =blat.exe test.txt -t myname@xx.yy -f myname@xx.yy -s "Object
Test " 
-server mail.xx.yy Sending test.txt to myname@xx.yy Subject:Oggetto Test 
Login name is myname@xx.yy error 5108 in function 'gensock_connect'Error:
Not a socket.

I tried a test.bat in yhis way :

i:/blat182_b/blat.exe test.txt -t myname@xx.yy -f myname@xx.yy -s "Object
Test " 
-server mail.xx.yy  
pause

and it worked and I received a correct mail :

J:\at5516\webapps\blat\WEB-INF\cgi>i:/blat182_b/blat.exe test.txt -t myname
@xx.yy -f myname@xx.yy -s "Object Test " -server mail.xx.yy
Sending test.txt to myname@xx.yy
Subject:Oggetto Test
Login name is myname@xx.yy

J:\at5516\webapps\blat\WEB-INF\cgi>pause


What could I do ? it is clearly a Tomcat problem.

-- 
View this message in context: http://www.nabble.com/Tomcat-CGI-BLAT.EXE-tf4534515.html#a12940588
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat-CGI-BLAT.EXE

Posted by Pid <p...@pidster.com>.
tomuser wrote:
> Problem with TOMCAT/CGI/BLAT.EXE
> I wrote these two files in the appropriate position of TOMCAT (test.html and
> test.cgi).
> Everything set according to specifications (CGI,..).
> I tried to send to myself a simple mail via blat.exe.

> What could I do ? it is clearly a Tomcat problem.

It is?  Clear as mud to me.

You could do something less complicated, like not use a win32 command
line app, inside perl, inside cgi, inside a servlet container.

If you insist on using Perl:

 http://www.google.com/search?q=perl+email

You could (outside chance) use a novel language called /Java/:

 http://www.google.com/search?q=email+servlet


It looks rather like the error is inside Blat, not Tomcat, possibly
because the CGI environment is different to the command line
environment.  You may also be running a SecurityManager which may be
restricting access to system sockets.



p

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org