Can someone help me of doing something like this
send.sh
#!/bin/bash
for last; do true; done
echo $* | gammu sendsms TEXT $last
every thing is good except that when i launch the script like this
./send.sh This is the message i want to send +63922XXXXXXX
it turned out the message of the reciepient is "This is the message i want to send +63922XXXXXXX"
it included the recipient's own number,
i tried using quote but im having problems when im using it of runtime.exec() on java so now im forced to do the script on a series of paramaters using $*
i want something like this to happen, when i execute
./send.sh This is the message i want to send +63922XXXXXXX
i want to user only to recieve
"This is the message i want to send" and send it to +63922XXXXXXX
not
"This is the message i want to send +63922XXXXXXX" and sends to +63922XXXXXXXX