I would call a PHP or PERL CGI to do that, or call exec a PERL script. I don't much 
like command line hacking in a configuration that need to be maintained. it's very 
nice for one-liners when you are in a hurry, but it's hell to maintain such stuff. 
when you need to write something to last - write it down, don't do cute hacks.

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]
(972)-67-340014
(972)-9-9581711 (ext: 116)

::..
Mr. Miyagi:  No such thing, bad student.  Only bad teacher.
        -- from "Karate Kid"


> -----Original Message-----
> From: Domino [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: SMS to email
> 
> 
> Thanks for the reply. I'll carry on trying.
> 
> You say you wouldn't do it like this - how would you do it? 
> I'm open to any
> and all suggestions.
> 
> Kenn
> 
> ----- Original Message -----
> From: Oded Arbel <[EMAIL PROTECTED]>
> To: Domino <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, June 03, 2002 7:50 AM
> Subject: RE: SMS to email
> 
> 
> The error you describe is related to the fake_smsc module, 
> and it means that
> something went wrong with the message you submitted using 
> fake_smsc, and not
> because of how you wrote the sms-service. I'd say that the 
> exec line you
> posted looks ok - even if I wouldn't do it like this.
> 
> --
> Oded Arbel
> m-Wise Inc.
> [EMAIL PROTECTED]
> (972)-67-340014
> (972)-9-9581711 (ext: 116)
> 
> ::..
> The biggest lies:
>  26. ..then take a left. You can't miss it.
> 
> 
> > -----Original Message-----
> > From: Domino [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 03, 2002 1:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: SMS to email
> >
> >
> > I am trying to setup an SMS to email gateway on linux with
> > Kannel 1.1.6
> > I have been trying an sms-service as
> > exec = "echo %r | mail -s \"sms message from %p\" %s"
> > the intension being the sender would specify the keyword
> > 'email' followed by
> > the email address then the body text.
> >
> > I've tried this using fakemsg but all I get in bearerbox is 
> "WARNING:
> > smsc_fake: invalid message syntax from client, ignored".
> >
> > Does anyone know if I am looking in entirely the wrong
> > direction or what the
> > syntax should be? I suppose I could fire up a perl script to
> > do the mailing
> > but that seems a bit heavy-weight when the command line seems
> > so close.
> >
> > Kenn Martin
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.346 / Virus Database: 194 - Release Date: 11/04/02
> >
> >
> >
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
> 
> 
> 

Reply via email to