![]() |
2011-03-29
, 14:35
|
Posts: 5 |
Thanked: 0 times |
Joined on Mar 2011
@ Romania
|
#23
|
![]() |
2011-03-29
, 15:01
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#24
|
![]() |
2011-03-29
, 16:34
|
Posts: 5 |
Thanked: 0 times |
Joined on Mar 2011
@ Romania
|
#25
|
![]() |
2011-04-17
, 20:06
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#27
|
number=$(python /usr/bin/nicolais_script -c $1 -e | grep -A 3 -B 3 NICKNAME:$1 | grep CELL | cut -d: -f2 | sed '$s/.$//')
smssend -n $number -m "$2"
echo "SMS to $1 ($number): \"$2\""
exit 0
The Following 4 Users Say Thank You to b666m For This Useful Post: | ||
![]() |
2011-04-17
, 22:05
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#28
|
name=$(python /usr/bin/nicolais_script -n $1 -a mobile-phone | head -1)
number=$(python /usr/bin/nicolais_script -n $1 -a mobile-phone | tail -1)
smssend -n $number -m "$2"
echo "SMS to $name ($number): \"$2\""
exit 0
The Following 2 Users Say Thank You to b666m For This Useful Post: | ||
![]() |
2011-05-26
, 08:04
|
Posts: 37 |
Thanked: 18 times |
Joined on Apr 2010
|
#29
|
![]() |
2011-09-06
, 20:12
|
Posts: 57 |
Thanked: 42 times |
Joined on Mar 2011
@ France
|
#30
|
That is good, please see if you can. it would be great if you can do that mate.
by the way, I am trying to pass a text file as the SMS content for the option -m. ("I am Testing" => only "I" is sent out)
Only the first word comes out. Nothing after the space comes out. I also tried using a variable instead. Behaves similarly. Why?
ex:
cat sms.txt => I am Testing
smssend -s -v 167 -m $(cat sms.txt) -n +1234567890 => "I" is smsd
val="I am Testing"
smssend -s -v 167 -m $val -n +1234567890 => "I" is smsd
val="I am Testing"
smssend -s -v 167 -m $(echo $val) -n +1234567890 => "I" is smsd
but
smssend -s -v 167 -m "I am Testing" -n +1234567890 => "I am Testing" is smsd!!
any thoughts on what I am missing?