[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Needed: new cellcom SMS script
On Mon, May 22, 2000, Ira Abramov wrote about "Re: Needed: new cellcom SMS script":
> On Sun, 21 May 2000, Nadav Har'El wrote:
> looks great! although my hack dumps all the communication headache at
> wget, since it was always meant to be a quick throwaway, but yours is a
> masterpiece :-)
I seems everybody wants to convert this script to use lynx, wget, or another
utility :)
Initially, my script was written in shell, using wget. But this was a dead-end:
It was too hard to do proper error checking (cellcom's old site had the
tendency to fail around 10% of the time, and a simple retry would work), and
too hard to get all the cookie stuff needed for Orange's site to work. Perhaps
I could have made it work, using curl, or another program, but it was too much
effort, and I started to feel the need for a real programming language, with
a real API for HTTP.
This is why I made the Perl version.
BTW, if I remember correctly, all the modules I mention are needed for
libwww-perl to work. It's a nice package, so it is worth the extra install
trouble (if you don't already have it installed).
> I'll incorporate Lingua::En::Squeeze into it, with your permission, and
> wrap it into a Qmail alias (so it does email-to-SMS), and send it back.
:)
> only one bugfix:
>
> 242c242
> < } elsif($phonenum =~ m/^05[45][0-9][0-9][0-9][0-9][0-9][0-9]/){
> ---
> > } elsif($phonenum =~ m/^054[0-9][0-9][0-9][0-9][0-9][0-9]/){
Yes, of course... I guess I'm a little behind the times :)
P.S. what's missing from my sendsms script now is a queuing system, like
sendmail's: it needs to be able to queue messages when the connection to
the Cellcom or Orange site is down, or when too many connections to these
sites are already open, and then later send the queued messages. If anybody
is looking for a nice programming project...
--
Nadav Har'El | Monday, May 22 2000, 17 Iyyar 5760
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Hospital: Where they wake you up to give
http://nadav.harel.org.il |you a sleeping pill.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il