Sponsored Content
Top Forums UNIX for Advanced & Expert Users Unix shell Script To Send SMS Post 302117798 by sdcoms on Wednesday 16th of May 2007 10:53:26 AM
Old 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

Sending SMS Via Unix Script?

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

sending sms through shell script

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

Unix Shell Script to loop over Directory and send Filesname as parameters

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

How to send email using shell script in UNIX, Is any environment setup required in Mac OS X ?

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

How to send email once a day at certain time in unix shell script

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

Script which will run every 10minutes and Send SMS to mobile

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

Bash script to send SMS

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

Sending sms through Shell script

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

Need to set up UNIX script to send sms on mobile

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

Unable to send attachment with html tables in UNIX shell script

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
sms_client(1)							   User Manuals 						     sms_client(1)

NAME
sms_client - send messages to mobiles and pagers. SYNOPSIS
sms_client [-v] sms_client [-d] sms_client [-q] [-l loglevel] [service:]number|name[,[service:]number|name] [message] ... DESCRIPTION
A simple client implementation for the GSM Short Message Service (SMS) using TAP. Allowing you to send messages to mobile phones and pagers. Several drivers have also been written for providers who use protocols other than TAP. This client dials the Short Message Service centre and passes on your message addressed to the number or name you specified. Any name you use is expanded to the number from either the Local or Global resource files. The Local file is searched first then the Global file. A user can set up his own preferences to overide those set in the Global file. Information regarding the status of the call is displayed, along with the response given by the SMS centre as the message is transmitted. If no message is present, sms_client takes the message from standard input. OPTIONS
-q Quiet mode, no output. -l All messages output are appended to /var/log/smsclient.log, there are several level of loggin. The default loglevel is STANDARD other loggin levels provided include. 1 - ERROR 2 - WARNING 3 - STANDARD 4 - VERBOSE 5 - EXTREMELY VERBOSE -v Print version information. -d Print all driver/protocols currently built into sms_client. [service:]number|name[,[service:]number|name] A name can be used instead of a number, if a name is used it is searched for in the Global and Local resource files and replaced by the number. You can group names and numbers but they must be seperated by a comma and must contain no whitespace. Numbers must be in International format. For UK Numbers remove leading 0 and add 44 prefix. If a number is prefixed with service: then that service is used in preference to the default service. [message]... A Quoted message that you want to send. If this is absent the message is read from stdin. The maximum length of the message is cur- rently set to a limit of 150 characters, if your message exceeds this length you will be notified with an error message. RETURN VALUES
On Success the return value is set to zero. Any other value indicates an error occurred. Each number dialed will have a corresponding output of the form: [###]SERVICE:NUMBER Where ### is the delivery code, 000 indicates successful delivery other values can be found in sms_error.h EXAMPLES
sms_client 123456 'Hello 123456' Use default service and send message to 123456 sms_client mike 'Hello mike' Use default service and send message to number associated with name mike found in one of the resource files. sms_client mike,angelo 'Hello mike and angelo' Use default service and send message to number associated with names mike and angelo found in one of the resource files. FILES
/etc/smsclient/sms_addressbook The Global addressbook file. Containing names and numbers. ~/.sms_addressbook The Local addressbook file. Contains names and numbers which can override those in the Global resource file. /etc/smsclient/sms_config Containing default service and other sms_client defaults. /etc/smsclient/sms_services Containing service to protocol mappings. /etc/smsclient/sms_modem Containing default modem settings. /etc/smsclient/services Directory containing all services - Each service is denoted by filename (in UPPERCASE) and contains defaults for that service, such as telephone number of service centre, comms params etc. /var/lock/smslock Lockfile generated when smsclient is running. /var/log/smslog Log file where all messages that are produced are copied. AUTHOR
Angelo Masci <angelo@styx.demon.co.uk> changed by Michael Holzt <kju@debian.org> for the Debian/GNU Linux Package VERSION
2.0.7 Linux 19 Oct 1998 sms_client(1)
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy