[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'one liner' to send sms?
From: |
Gian Uberto Lauri |
Subject: |
Re: 'one liner' to send sms? |
Date: |
Wed, 5 Apr 2006 15:33:45 +0200 |
>>>>> "EBM" == Ernest B M (gmail) <address@hidden> writes:
EBM> yes. i see it is the following sequence:
EBM> gnokii --sendsms <number>
EBM> ...
EBM> ...
EBM> message
EBM> Ctrl+D
EBM> what i am trying to achieve is specifying the number and message
EBM> on the same command, and hitting enter to send the sms
This is an issue regardin the shell, not gnokii, maybe man bash should
have helped you :).
As your example suggest, and this one
echo "Message" | gnokii --sendsms <number>
confirms, the text to be sent as SMS is readed from stdin (yes, this
solves your problem AFAIK).
All you need is to do is play around with pipes or here documents or
even here strings (with bash, see the man page of the shell you use)
as you feel it suites more to your taste.
--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico
\/ e allevatore di bug da competizione