05-16-2007
Unix shell Script To Send SMS
hi , can anyone help with a script to send SMS to some mobile numbers on some conditions.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is it possible to send sms to a mobile from unix box using Shell Scripting?
I really wonder if anyone can help me with some information regarding how to setup the environment if possible.
Iam also searching and trying to setup the same.
My Environment:
HP-UX B.11.11 U 9000/800... (2 Replies)
Discussion started by: Omkumar
2 Replies
2. HP-UX
pl. if any one can help me in this .
i wouldlike to know if there is a way to send sms through unix box.
i have tried using mailx option.
but what type of servers will be required .
if any one can give me references...
Thankxs in advance
Regards,
Alpa (1 Reply)
Discussion started by: alpareshamwala
1 Replies
3. Shell Programming and Scripting
Hi there
I'm new to UNIX scripting; I’m stuck with the following
I have an Oracle SQL script that takes three parameters
1- File Name
2- File Path
3- File creation date
Under UNIX I have a folder where files will be placed frequently and I need to upload those files to Oracle, what I need... (3 Replies)
Discussion started by: windjashi
3 Replies
4. Shell Programming and Scripting
Hi All,
I am using Mac OS X (Leopard OS). I am very new to UNIX. My requirement is that, by running a shell script, I create a log file. So I have to send a mail having that log file attached. What I tried to do is, I simply tried to check,whether this direct command works or not. So I... (2 Replies)
Discussion started by: Afreen
2 Replies
5. Shell Programming and Scripting
hi,
i have to send an email once a day at ceratin time say 22.
i have tried with date commad, but not working.:(
HOUROFTHEDAY=`date +'%H'`
if ; then
mailx -s "Info" emailid@org.com < $ProcessStatisticsFile
fi
Please help me... (5 Replies)
Discussion started by: sreelu
5 Replies
6. UNIX for Advanced & Expert Users
Hello Genuis guys,
I am running Aix5 and Oracle 9 on it.
I have sql query which only count a particular rows.
I need to prepare a script which will run that sql query every 10 minutes and if the ouput count is greate than 20. It will send SMS to mobile numbers.
Need your kind help to... (8 Replies)
Discussion started by: thepurple
8 Replies
7. Shell Programming and Scripting
Hey guys I was wondering how to go about creating a bash script to send SMS..any ideas are appreciated.. (2 Replies)
Discussion started by: blackzeus
2 Replies
8. Shell Programming and Scripting
Can anyone please help me to in scripting of sending sms through shell script (1 Reply)
Discussion started by: gargidas15
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please help in setting up Unix script for sending text messages on mobile??
Actually scenario is we want notification when there is any failures in our processes or if any service goes down we must be notified by a text message on our mobile, we already have email... (3 Replies)
Discussion started by: NikhilM
3 Replies
10. HP-UX
Heyy,
any help would be grateful....
LOOKING FOR THE WAYS TO SEND AN EMAIL WITH ATTACHMENT & HTML TABLES IN BODY THROUGH SHELL SCRIPT (LINUX)..NOT SURE, IF WE HAVE ANY INBUILT HTML TAG OR UNIX COMMAND TO SEND THE ATTACHMENTS. KINDLY HELP
below is small script posted for our understanding..... (2 Replies)
Discussion started by: Harsha Vardhan
2 Replies
LEARN ABOUT DEBIAN
gammu-smsbackup
GAMMU-SMSBACKUP(5) Gammu GAMMU-SMSBACKUP(5)
NAME
gammu-smsbackup - gammu(1) SMS backup file format.
The SMS backup format is text file encoded in current encoding of platform where Gammu is running.
This file use ini file syntax, see ini.
SECTIONS
The file consists of sections, whose name starts with SMSBackup. When creating the backup file, three digits are appended to this text
defining order. While reading the backup, any part after SMSBackup text is ignored and everything which begins with this is processed. So
you can as well give the section name SMSBackupFoo and it will be processed.
The number of messages in backup file is currently limited by GSM_BACKUP_MAX_SMS (100000 at time of writing this document).
SMSBackup section
Each section interprets one physical SMS message (eg. one message part in case of multipart messages).
Decoded text
For SMS backups created by Gammu, there is a decoded text as a comment just after the section name:
[SMSBackup001]
; This is message text
The text can be split to more lines if it is too long or of original message included new lines.
Note This is easiest way to get message text, however also the least reliable one, because it is stored in the comments in the file.
Variables
The following variables can be defined for each SMS:
SMSC Text representation of SMSC number, not used by Gammu if SMSCUnicode exists.
SMSCUnicode
Hex encoded UCS-2 string with SMSC number.
Class Message class.
Sent Timestamp, when message has been sent.
PDU Message type, one of:
o Deliver - received message
o Submit - message to send
o Status_Report - message to send with delivery report
DateTime
Timestamp of message (sent or received).
RejectDuplicates
Whether receiver should reject duplicates.
ReplaceMessage
ID of message to replace.
MessageReference
Message reference number as generated by network.
State State of the message:
o Read
o UnRead
o Sent
o UnSent
Number Recipient number.
Name Name of the message.
Length Length of message text.
Coding Coding of the message:
o 8bit - binary message
o Default - GSM encoding, up to 160 chars in message
o Unicode - Unicode encoding, up to 70 chars in message
Text00 ... TextNN
Numbered parts of the message payload.
Folder ID of folder where the message was saved.
UDH User defined header of the message.
EXAMPLE
The backup of message can look like following:
[SMSBackup000]
#ABCDEFGHIJKLMNOPQRSTUVWXYZ
#
SMSC = "+4540590000"
SMSCUnicode = 002B0034003500340030003500390030003000300030
Sent = 20021201T025023
State = UnRead
Number = "+4522706947"
NumberUnicode = 002B0034003500320032003700300036003900340037
Name = ""
NameUnicode =
Text00 = 004100420043004400450046004700480049004A004B004C004D004E004F0050005100520053005400550056005700580059005A000A
Coding = Default
Folder = 1
Length = 27
Class = -1
ReplySMSC = False
RejectDuplicates = True
ReplaceMessage = 0
MessageReference = 0
AUTHOR
Michal iha <michal@cihar.com>
COPYRIGHT
2009-2012, Michal iha <michal@cihar.com>
1.31.90 February 24, 2012 GAMMU-SMSBACKUP(5)