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 [EMAIL PROTECTED] -f [EMAIL PROTECTED] 
-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 [EMAIL PROTECTED] -f [EMAIL PROTECTED] -s 
"Object
Test " 
-server mail.xx.yy Sending test.txt to [EMAIL PROTECTED] Subject:Oggetto Test 
Login name is [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -f [EMAIL PROTECTED] -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 [EMAIL PROTECTED] -s "Object Test " -server mail.xx.yy
Sending test.txt to [EMAIL PROTECTED]
Subject:Oggetto Test
Login name is [EMAIL PROTECTED]

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to