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:
If the output of this command is greater than zero I want an SMS to be send to my mobile number. I would also want to customize the message to read, " Overload on Server 2"
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... (9 Replies)
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)
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)
Hello guys,
I have been given a task to set up a new shell script, which needs to trigger the SMS(Short Messaging Service) to the phone numbers if an event occurs like filesystem goes beyond the threshold value of 70%. I am having the script to send a mail to recipients if that incident happens... (3 Replies)
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)
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)
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
LEARN ABOUT DEBIAN
sms::send::test
SMS::Send::Test(3pm) User Contributed Perl Documentation SMS::Send::Test(3pm)NAME
SMS::Send::Test - SMS::Send International-Class Testing Driver
SYNOPSIS
# Create a testing sender
my $send = SMS::Send->new( 'Test' );
# Clear the message trap
$send->clear;
# Send a message
$send->send_sms(
text => 'Hi there',
to => '+61(4) 1234 5678',
);
# Get the message from the trap
my @messages = $send->messages;
DESCRIPTION
SMS::Send supports two classes of drivers.
An international class named in the format "SMS::Send::Foo", which only accept international numbers in "+1 XXX XXXXX" format, and
regional-context drivers in the format "SMS::Send::XX::Foo" which will also accept a non-leading-plus number in the format applicable
within that region (in the above case, Australia).
SMS::Send::Test is the testing driver for the international class of drivers. Except for the name, it is otherwise identical to
SMS::Send::AU::Test.
Its two roles are firstly to always exist (be installed) and secondly to act as a "trap" for messages. Messages sent via SMS::Send::Test
always succeed, and the messages can be recovered for testing after sending.
Note that the trap is done on a per-driver-handle basis, and is not shared between multiple driver handles.
METHODS
SMS::Send::Test inherits all the methods of the parent SMS::Send::Driver class, and adds the following.
messages
The "messages" method retrieves as a list all of the messages in the message trap.
clear
The "clear" method clears the message trap. This should be done before each chunk of test code to ensure you are starting from a known
state.
Returns true as a convenience.
SUPPORT
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send>
For other issues, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2005 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2011-11-09 SMS::Send::Test(3pm)