01-20-2012
Not showing the correct string...
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.
HTML Code:
Script
------
ONCALL_NUMBER=`$SCRIPT/smsnumber`
$SCRIPT/sendsms 'TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered again>'
HTML Code:
Output
------
+ ONCALL_NUMBER=+44123456789
+ sendsms TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered againain>
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
How can I expand the command filed sizing when using a ps command. With diretories and script names and parameters being set I'm not getting some of the information that I need (at the end of the command line).
I'm using HP_UX 11i.
Cheers,
Neil (2 Replies)
Discussion started by: nhatch
2 Replies
2. AIX
Hi All,
I have been working with two AIX with san and this is the first I got this minor problem on my third AIX. The san/hdisk was recreated so many times because of this problem. When I created a new vg and fs. The fs will be mounted/unmounted properly but if I query the fs on a vg with... (2 Replies)
Discussion started by: itik
2 Replies
3. Shell Programming and Scripting
I have input file like this
Input file:
ABC|abc_etc_passwd
XYZ|XYZ_etc_passwd
zXY|XYZ_etc_passwd
IJK|test_etc_passwd
KLM|test_etc_passwd
i want to do following in a loop.
grep 'ABC' *abc_etc_passwd*
grep 'XYZ' *XYZ_etc_passwd*
grep 'ZXY' *ZXY_etc_passwd*
i have tried this
for i... (2 Replies)
Discussion started by: pinnacle
2 Replies
4. Programming
I have string named texts which consist of section label “BOOK-SEC-“. Section starts from 1 to n, where n is a number. For this example conside the value of n is 9. That is, the string variable looks like
“BOOK-SEC-1... (2 Replies)
Discussion started by: SamRoj
2 Replies
5. Linux
Process start time is not showing the correct time:
I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41
Day/Date is setup correctly on the server.
It... (2 Replies)
Discussion started by: hemangjani
2 Replies
6. AIX
I have 1 box running 5.2 and another running 5.3. Both use the NIS accounts and NFS home directories. Users can telnet on to both and 'who' displays the login.
However when users run xterms using a remote X server (e.g. Exceed), by telnetting then running
/usr/bin/X11/xterm -d xxx.xxx.xxx.xxx:0
... (1 Reply)
Discussion started by: spitzie
1 Replies
7. Linux
Hi,
I am having an issue releated to shell-environment on a server.
Let me explain with the example of below script:
#!/bin/ksh
echo " enter:\c"
read a
echo $a
As I am using ksh the expected output from this script should be 'enter:' (expecting the input for read in same... (8 Replies)
Discussion started by: mystition
8 Replies
8. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
9. Shell Programming and Scripting
if ; then
rm -rf "${x}"_"${y}"_abc_pqr.dat error: `then' unmatchedCan anyone please help me in correcting it.
Please use code tags next time for your code and data. Thanks (2 Replies)
Discussion started by: D_Sethi
2 Replies
10. Shell Programming and Scripting
Hello
I am working on one script where I am trying to display all the directories which is inside the workspace but somehow it is giving me weird output and this is occurring only with one directory other also having the result.html file inside the directory.
for i in `ls -1 | egrep -iv... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
LEARN ABOUT DEBIAN
sendsms
sendsms(1) gnokii sendsms(1)
NAME
sendsms - command line tool to send SMSes using gnokii
SYNOPSIS
sendsms [OPTIONS]
DESCRIPTION
sendsms allows you to send a SMS using gnokii not knowing the syntax of gnokii command. It is written using dialog and allows to send a
text SMS choosing recipients from the phone address book or entering it manually.
OPTIONS
Available options:
[--debug|-D]
May bother with more debugging messages. For debugging purpose.
--simul[ate], -S
Simulation mode. Doesn't really send SMS by phone. Only simulates. For debugging purpose.
--forceSMread, -s
Forces sendsms to read phonebook from SIM card, and to parse the generated file in order to update the numbers' list (useful only if
required to pickup number from the phone's memory). See NOTE.
--forceMEread, -m
Forces sendsms to read phonebook from phone memory, and to parse the generated file in order to update the numbers' list (useful
only if required to pickup number from the phone's memory). See NOTE.
--skipgnokiicheck, -K
Skip the test of the presence of binary 'gnokii'. (It must be somewhere in your $PATH). It allows you to try this script program,
even if you don't have 'gnokii' already. ;)
--smsset, --setsms
Allows you to preset a SMS message from STDIN. (pipe or input redirection). This message will be proposed on the 'SMS message'
field during the program input cycle.
--help, -h, /h
display this help and exit
--version, -V
output version information and exit"
NOTE: If you require to pickup number from phone's memory (or from SIM card), for the first time, it anyway reads phonebook from your
mobile phone. (It may take a while... please, be patient ;-)
BUGS
None reported.
AUTHOR
Sendsms was written by Gabriele Zappi - Rimini <gzappi@inwind.it>.
This manual page was written by Pawel Kot.
COPYING
This program is distributed under the GNU Public License.
SEE ALSO
gnokii
Pawel Kot August 29, 2003 sendsms(1)