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

[MacPerl-WebCGI] SMS Perl CGI



Dear Listmembers,

I'm completely new to Perl, and am having some problems.
I have a Perl script written for me to be able to send SMS
messages to cellphones here in Europe using a webpage.

Our telecom provider who will act as the SMS gateway
has an SMS telnet server which we need to use to be
able to send the message (submitted on our webpage)
to the cellphone-numer the user gave.

So this is the scenario:
- users comes to our webpage with a form where he
has to fill in 2 fields: the phone-number of the GSM
to which he wants to send a message and the message
itself.
- when the user submits the form, the Perl CGI checks
if the 2 fields are filled out correclty, and the contacts the
SMS telnet server.
- the Perl script gives the data to the telnet server, and
gives areply page back to the user, depending on the
telnetservers reply command.

The Perl script is allready written (on a unix machine), but
we need to use it on our G4 WebSTAr 4.2 server running
MacOS 8.6 and MacPerl.

The Perl script, cgi  & form can be downloaded from here:
http://www.tnt.be/tempfiles/sendsms.sit

Until now, I have not been able to make the CGI run. The
Perl developer assures me that the script is 100% working,
and that the problems is our Mac server.

I f I call the CGI, nothing happens, the script times out, or
gives a "socket not connected" error to the browser.
The CGI stays open on the server, and does not quit.
I have to do a hard reboot of the G4 to be able to stop
the CGI. This happens if I save it as a CGI and a ACGI.
Also llocating more memory to the CGI does not help.

Is there any MacPerl master who feels like helping out?
In fact, all I need to do is communicate with a telnet
server with data from a webpageform.

The description our telecomprovider gave us, can be
downloaded from
http://www.tnt.be/tempfiles/smsdescr.txt

Remember, if you feel like testing this, your IP is not
allowed to use the SMS gateway, so if you get the SMS
orking, you will get an error saying that you are not
allowed to send SMS messages.

All help is VERY welcome, I'm completely stuck. My
client is thinking of buying a PC to do this, but I gave him
my promise that we can do it on a Mac...

Thanks a lot in advance!


Kindest regards,

Jona Tallieu
Jona@tnt.be

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