01-26-2001
I am assuming you mean messages to a portable phone? If so the answer is yes, as long as sendmail is properly configured to reach the outside world. Sendmail configuration can be a pain, but if it's working then it is easy to send messages.
echo "this is my message" | /usr/lib/sendmail -v npanxx####@sms.provider.com
If you have a Cingular (formerly Southwestern Bell) phone, that would be;
echo "this is my message" | /usr/lib/sendmail cellnumber@email.swbw.com
If you want to send a flat file named my_file;
cat my_file | /usr/lib/sendmail cellnumber@email.swbw.com
The -v used in the first example will simply show you what is going on when sending from the command line and is not necessary. I would omit it in a script.
10 More Discussions You Might Find Interesting
1. HP-UX
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
2. UNIX for Advanced & Expert Users
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)
Discussion started by: sarojadevi
9 Replies
3. 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
4. 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
5. Shell Programming and Scripting
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
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
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
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,
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
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
socklog-check
socklog-check(8) System Manager's Manual socklog-check(8)
NAME
socklog-check - checks for the availability of a socklog(8) service.
SYNOPSIS
socklog-check [-v] [unix [address]]
DESCRIPTION
socklog-check attempts to connect to a socklog(8) unix service and reports whether the connection attempt succeeded or not.
It connects to the datagram oriented unix domain socket address, and reports success through the return code. If address is not specified,
socklog-check attempts to connect to /dev/log.
When running services that use the syslog facility under runit's service supervision, socklog-check should be added to the top of the ser-
vice's run script to ensure that no syslog messages are generated until a syslog service is up and running to process the messages, e.g.:
#!/bin/sh
socklog-check || exit 1
exec service_using_syslog
OPTIONS
-v verbose. Print verbose message to standard error.
EXIT CODES
On success socklog-check returns 0.
On error, socklog-check prints a message to standard error and exits 111.
SEE ALSO
socklog(8), socklog-conf(8), svlogd(8), tryto(1), uncat(1), sv(8), runsv(8), runsvdir(8)
http://smarden.org/socklog/
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
socklog-check(8)