[Top][All Lists]

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

gnokii sendsms problem

From: ktulu
Subject: gnokii sendsms problem
Date: Mon, 29 Sep 2003 12:54:32 +1000
User-agent: Internet Messaging Program (IMP) 3.2.1

Hi All,

I'm trying to send an automated SMS using gnokii.  I have a Nokia 8210 connected
to my machine with a serial cable.  The following commands work fine:

***COMMAND 1***
address@hidden root]# gnokii --sendsms <some_number>
GNOKII Version 0.5.4
Please enter SMS text. End your input with <cr><control-D>:Testing 1,2,3...
Send succeeded!

***COMMAND 2 (script)***
gnokii --sendsms +61400153042 <<EOF
Testing 1,2,3...

However, if I enter something like
gnokii --sendsms <some_number> <message.txt  (where message contains "Testing
I get a seg fault...

Is there any way to provide this command a message without it having to read
from STDIN?  I need a way to enter a message without using STDIN and the
application I'm using (nagios) does not accept the "<<EOF" syntax correctly. 
Any help would be much appreciated!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]