[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] SMS Perl CGI



At 08:55 -0500 on 11-04-2000, David Steffen wrote:

Hi David,

Thanks for the fast reply!

>>Until now, I have not been able to make the CGI run.
>>
>>If I call the CGI, nothing happens, the script times out, or
>>gives a "socket not connected" error to the browser.
>
>?? Which is it ??

Well, I had both...
I think is I named it a CGI, I got the "socket not connected"
error in the browser, and if I named it and ACGI, I got a
"time-out" page from the script.


>>The CGI stays open on the server,
>
>Which means it ran.
>
>>and does not quit.
>
>Normal behavior for a MacPerl CGI is to stay open for 5 minutes.

Its stays open, even after 5 minutes...

>>I have to do a hard reboot of the G4 to be able to stop
>>the CGI.
>
>Did you try selecting the CGI from the applications menu and
>clicking the "Quit Now" button?

No use, it stays open , even if I try to force-quit the CGI!


>>This happens if I save it as a CGI and a ACGI.
>
>This is not relevant to your current problem, but...
>
>DO NOT USE ACGI!  Always name your file .cgi


If I name it a CGI, it completely takes over my server, and my
server stops responding to web-requests, until the script
gives up and releases the server. This takes up to 2 minutes...
Why is ACGI so bad?


>When I tried to run your script, I had to change the URL of the CGI
>to that of my server, but then got (bogus) output.
>
>Having gone through the above, I see two potential problems right away:
>
>1) The lines:

....

>2) The script contains the line:
>	$num=`cat /usr/web/SMS/num`;

.....

>     Also, the line:
>
>open(SAVE,">/usr/web/SMS/num");
>
>... has the wrong syntax for Mac paths.
>
>Finally, when I dealt with all that, I found that the call to:
>
>		$remote = IO::Socket::INET->new( Proto     => "tcp",
>                                           PeerAddr  => $aircallIP,
>                                           PeerPort  => $aircallPort,


I'm going to give thiese very valuable remarks to the developer of the
Unix Perl script, and see if he can work something out.

If someone has a good script laying arround which can communicate with
a Telnet server like the script I recieved, don't hesitate to contact me! ;-)


Thanks again!


Jona

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org