Sponsored Content
Full Discussion: Sending SMS
Top Forums UNIX for Advanced & Expert Users Sending SMS Post 302081829 by sarojadevi on Friday 28th of July 2006 03:58:49 AM
Old 07-28-2006
Hi,

There is a way as amitkhiare said. Using SMS server we don't need any third party tools/software to send SMS from Unix box.

The configuration you need is a username and password on the SMS server.

Thanks,
Saroja.
 

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
Device::Gsm::Sms(3pm)					User Contributed Perl Documentation				     Device::Gsm::Sms(3pm)

NAME
Device::Gsm::Sms - SMS message internal class that represents a single text SMS message SYNOPSIS
# A list of Device::Gsm::Sms messages is returned by # Device::Gsm messages() method. use Device::Gsm; ... @sms = $gsm->messages(); if( @sms ) { foreach( @sms ) { print $msg->storage() , " "; print $msg->recipient() , " "; print $msg->sender() , " "; print $msg->content() , " "; print $msg->time() , " "; print $msg->type() , " "; } } # Or you can instance a sms message from raw PDU data my $msg = new Device::Gsm::Sms( header => '+CMGL: ...', pdu => `[encoded pdu data]', storage=> 'ME', # or 'SC' ); if( defined $msg ) { print $msg->recipient() , " "; print $msg->sender() , " "; print $msg->content() , " "; # or $msg->text() print $msg->time() , " "; print $msg->type() , " "; } $msg->delete(); DESCRIPTION
"Device::Gsm::Sms" class implements very basic SMS message object, that can be used to decode "+CMGL" GSM command response to build a more friendly high-level object. METHODS
The following is a list of methods applicable to "Device::Gsm::Sms" objects. content() See text() method. decode() Starts the decoding process of pdu binary data. If decoding process ends in success, return value is true and sms object is filled with all proper values. If decoding process has errors or pdu data is not provided, return value is 0 (zero). delete() Delete the current SMS message from sim card. Example: $gsm = Device::Gsm->new(); ... my @msg = $gsm->messages(); $msg[0] && $msg[0]->delete(); new() Basic constructor. You can build a new "Device::Gsm::Sms" object from the raw +CMGL header and PDU data. Those data is then decoded and a new sms object is instanced and all information filled, to be available for subsequent method calls. The allowed parameters to new() method are: header This is the raw +CMGL header string as modem outputs when you issue a +CMGL command pdu Binary encoded sms data storage Tells which storage to delete the message from. Check the documentation of your phone to know valid storage values. Default values are: "ME" Deletes messages from gsm phone memory. "SC" Deletes messages from sim card. index() Returns the sms message index number, that is the position of message in the internal device memory or sim card. This number is used for example to delete the message. my $gsm = Device::Gsm->new(port=>'/dev/ttyS0'); ... my @messages = $gsm->messages(); ... # Delete the first returned message my $msg = shift @messages; $gsm->delete_sms( $msg->index() ); recipient() Returns the sms recipient number (destination address = DA) as string (ex.: +39012345678). sender() Returns the sms sender number (originating address = OA) as string. status() Status of the message can be one value from the following list: storage() Returns the storage where SMS has been read from. text() Returns the textual content of sms message. token() Returns the given PDU token of the decoded message (internal usage). type() SMS messages can be of two types: SMS_SUBMIT and SMS_DELIVER, that are defined by two constants with those names. type() method returns one of these two values. Example: if( $sms->type() == Device::Gsm::Sms::SMS_DELIVER ) { # ... } elsif( $sms->type() == Device::Gsm::Sms::SMS_SUBMIT ) { # ... } REQUIRES
o Device::Gsm EXPORTS
None TODO
o Complete and proof-read documentation and examples COPYRIGHT
Device::Gsm::Sms - SMS message simple class that represents a text SMS message Copyright (C) 2002-2009 Cosimo Streppone, cosimo@cpan.org This program is free software; you can redistribute it and/or modify it only under the terms of Perl itself. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Perl licensing terms for details. AUTHOR
Cosimo Streppone, cosimo@cpan.org SEE ALSO
Device::Gsm, perl(1) perl v5.14.2 2012-03-08 Device::Gsm::Sms(3pm)
All times are GMT -4. The time now is 11:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy