Author |
Post |
|
#1 Mon Nov 08, 2010 10:54, 170 months ago.
|
Member
Registered: Nov 2010
Location: Sindh, Pakistan
|
How to send sms through expect script with sudo command ?
|
|
#2 Mon Nov 08, 2010 11:23, 170 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Why do you need expect? If you are using the sendsms script, you can call it with arguments and there is no dialogue required:
sudo sendsms 358401234567 "This is SMS."
More than one recipient is also supported:
sudo sendsms 358401111111 358402222222 358403333333 "This is SMS."
Last argument is the text which should be inside quotation marks if it's not single word only.
|