Scripting GURU,
I have written a ksh script to get a number from a file and attempting to input the number into the sendsms output script..
But i am finding that ONCALL_NUMBER is showing as $ONCALL_NUMBER as the output for the TO:$ONCALL_NUMBER@sms.info.com message and not as TO:+44123456789@sms.info.com
Can you help please.
Script
------
ONCALL_NUMBER=`$SCRIPT/smsnumber`
$SCRIPT/sendsms 'TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered again>'
Output
------
+ ONCALL_NUMBER=+44123456789
+ sendsms TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered againain>