Sponsored Content
Full Discussion: Sending SMS
Top Forums UNIX for Advanced & Expert Users Sending SMS Post 302081635 by amitkhiare on Wednesday 26th of July 2006 06:12:19 PM
Old 07-26-2006
Quote:
Originally Posted by sarojadevi
Hi,

Can any one tell me how to send SMS using Unix shell scripting. My scenario is whenever my count on particular tables exceeds beyond certain limit i need to trigger out an sms to the client. It could be better if there is no third party tools involved in it.

Thanks in advance...
HI,

You just need to send a mail to the your cell phone. If you are using Korn Shell you can try this .

echo "hello" | mailx -s "test" <cell phone no>@serviceproviders.(net/com).

Before using this you need to confirm with the service provider if this facility is allowable from there side.

Hope this helps
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sending SMS on AIX unix

Is it possible to send SMS messages from an AIX unix machine? Preferable using a unix script. I hope somebody knows the answer. (3 Replies)
Discussion started by: chriss
3 Replies

2. HP-UX

sending sms to handphone

Hi guys, anyone knows exactly how to send sms to handphone from a unix server? What is/are needed to perform such a task??Pls Advise. (1 Reply)
Discussion started by: alexjee
1 Replies

3. 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

4. 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

5. Shell Programming and Scripting

bash unix cron + sending sms

Hi all, i'm trying to send an sms (notification sms) via a bash script executing throw crontab. The script works fine, but the sms itsn't sent to me. can you help me to resolve this issue, plz. Thanks. Yes - we probably COULD help you if you WOULD provide us with your script, the... (0 Replies)
Discussion started by: arezki76
0 Replies

6. Solaris

Sending SMS from Solaris 10 - Help

All, I'm an in-experienced Solaris user, but our application is now hosted on Solaris 10, after being hosted on HPUX for many years. In some of our scripts, we send a text message to a support persons cell phone using the mailx command: echo "process count high on $HOST" | mailx -s... (2 Replies)
Discussion started by: turk22
2 Replies

7. Solaris

Help with SMS sending Script

I would like assistance on a script that could send a text message to my mobile phone when I run a command and the text should be send only if a condition is met. I want to have a cron-job running every 10 minutes to check the system for overload conditons with a command: more logfile.log | grep... (5 Replies)
Discussion started by: thinktank
5 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

Sending sms from UNIX server

Hi, I am currently using Unix solaris server. I need to send a sms to my mobile whenever the CPU usage exceeds the threshold. I tried using mail command its not working. I am using Vodafone sim. Can anyone help me to find this as soon.:confused: And also exactly i don't know the SP name... (9 Replies)
Discussion started by: Arasu123
9 Replies

10. AIX

Sending SMS from my AIX server

Hello AIXian :) I'm trying to send SMS from my AIX server, but I can't find any good solution :confused: Can anyone help me please to finish this task? Many thanks (2 Replies)
Discussion started by: Mohannad
2 Replies
GSMSENDSMS(8)						      System Manager's Manual						     GSMSENDSMS(8)

NAME
gsmsendsms - SMS message sender utility SYNOPSIS
gsmsendsms [ -b baudrate ] [ --baudrate baudrate ] [ -c concatenatedID ] [ --concatenate concatenatedID ] [ -C service centre address ] [ --sca service centre address ] [ -d device ] [ --device device ] [ -h ] [ --help ] [ -I init string ] [ --init init string ] [ -r ] [ --requeststat ] [ -t ] [ --test ] [ -v ] [ --version ] [ -X ] [ --xonxoff ] phonenumber [ text ] DESCRIPTION
gsmsendsms sends SMS short messages using an GSM mobile phone. gsmsendsms attaches itself to the device given on the command line (usually an GSM modem) using the specified baudrate. If no device is given, the device /dev/mobilephone is used. If no baudrate is given, a default baud rate of 38400 is used. gsmsendsms accepts a phone number (recipient address) and the short message text as parameters. The text may have a maximum length of 160 characters which is the maximum SMS message length. The GSM default alphabet is used for encoding. ASCII and Latin-1 characters that can not be encoded using the GSM default alphabet are converted to the GSM delta character (GSM code 16). Error messages are printed to the standard error output. If the program terminates on error the error code 1 is returned. OPTIONS
-b baudrate, --baudrate baudrate The baud rate to use. -c concatenatedID, --concatenate concatenatedID If an ID is given, large SMSs are split into several, concatenated SMSs. All SMSs have the same ID and are numbered consecutively so that the receiving phone can assemble them in the correct order. IDs must be in the range 0..255. Not all receiving phones will sup- port concatenated SMSs (and display them as separate SMSs), since all the numbering and ID information is carried in the user data header element at the beginning of the SMS user data. This information may show up as garbage in such phones. -C service centre address, --sca service centre address Sets the service centre address to use for all SUBMIT SMSs (may not work with some phones). -d device, --device device The device to which the GSM modem is connected. The default is /dev/mobilephone. -h, --help Prints an option summary. -I init string, --init init string Initialization string to send to the TA (default: "E0"). Note that the sequence "ATZ" is sent first. -r, --requeststat Request status reports for sent SMS. -t, --test If this option is given the text is converted to the GSM default alphabet and back to Latin-1. This option can be used to find out how ASCII or Latin-1 texts are converted to the GSM default alphabet. Characters that can not be converted to the GSM default alpha- bet are reported as ASCII code 172 (Latin-1 boolean "not") after this double conversion. No SMS messages are sent, a connection to a mobile phone is not established. -v, --version Prints the program version. -X, --xonxoff Uses software handshaking (XON/XOFF) for accessing the device. EXAMPLES
The following two invocations of gsmsendsms each send the same SMS message to the number "1234": gsmsendsms -d /dev/ttyS2 -b 19200 1234 "This is a test." echo "This is a test." | gsmsendsms -d /dev/ttyS2 -b 19200 1234 FILES
/dev/mobilephone Default mobile phone device. AUTHOR
Peter Hofmann <software@pxh.de> BUGS
Report bugs to software@pxh.de. Include a complete, self-contained example that will allow the bug to be reproduced, and say which version of gsmsendsms you are using. COPYRIGHT
Copyright (C) 1999 Peter Hofmann gsmsendsms is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as pub- lished by the Free Software Foundation; either version 2, or (at your option) any later version. gsmsendsms is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL- ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with gsmsendsms; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. SEE ALSO
gsminfo(7), gsmpb(1), gsmctl(1), gsmsmsd(8), gsmsmsstore(1). gsmsendsms v1.10 Sat Jun 16 22:10:00 UTC 2012 GSMSENDSMS(8)
All times are GMT -4. The time now is 02:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy