process pager - by cell phone or just e-mail notify


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users process pager - by cell phone or just e-mail notify
# 1  
Old 10-18-2001
Question process pager - by cell phone or just e-mail notify

hi all..

i need any help. i want to create in my crontab a simple script for verify any process and notify for the status in my e-mail or cell phone.

anybody help me?
# 2  
Old 10-19-2001
what do you mean when you say 'verify any proccess'??

I suppose in your script you need to include the following commands:
<pre>

ps -ef |grep whatever
grep whatever
mail or any other mailer // for notify youe email.

</pre>
# 3  
Old 10-19-2001
Process Pager on Cell Phone or E-Mail Notify

tks Guest100...

when i say "verify process" i talk about verify what process is running, example, i need my server send a notify when the process is down.

understand?
# 4  
Old 10-19-2001
Code:
WATCH=`ps -ef|grep whatever|wc -l`

if [[ $WATCH -ne 0 ]]; then
exit 0
else
echo "Process is not running"|mailx -s"SUBJECT HERE" user@blah.com

# 5  
Old 10-19-2001
process pager - notify bye-mail or cell phone

ok. thanks Optimus_P.

But now, i want my script check the internet conection.
What's the sintax for the correct WATCH with "ping any.address.com"?

If anybody want's help-me, i wait for contact.
# 6  
Old 10-19-2001
Quote:

ps -ef | grep 'a process' | grep -v grep
Remember! When you ps -ef and pipe to grep, you must filter out the grep with the -v flag.
# 7  
Old 10-19-2001
Neo

Ok, Tks Neo, but i want execute a "ping any.address.com"..
If ping not response, i'll notify by e-mail. If the ping response, nothing e-mail is sent.

Can you help-me?
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cronjob to notify by mail

I am planning some tasks that I need send mails regularly to my team members. I think to use cronjob with script to do it. Two init files are prepared, I can change the format if you ask for. name.txt: Bill bill@xxx.com Peter peter@xxx.com James james@xxx.com Tasks_list.txt ... (4 Replies)
Discussion started by: newoz
4 Replies

2. Shell Programming and Scripting

notify-send does not notify real time

Hi, I am having a little trouble getting notify-send to work the way I would like it to. I am using ubuntu - karmic koala 2.6.31-19-generic #56-Ubuntu SMP So here's the problem run the following commands one after the other. notify-send -i info -t 100000 -- "Hi" "world" & notify-send -i... (3 Replies)
Discussion started by: linuxpenguin
3 Replies

3. Shell Programming and Scripting

Using mail command to notify the status of script

Can someone please help me with this script, I'm trying to create system backup on AIX, for this I want to first mount the filesystem if it is not mounted, then create the backup and unmount the filesystem but I'm having problem while using the mail command to notify the status of filesystem... (9 Replies)
Discussion started by: mbak
9 Replies

4. AIX

mail, aliases, pager

Hi, I have two aliases for two types of alert. /etc/aliases italert1: user1@company.com italertb: 123456@paging.isp.com The first alias containts only an email to go through the company exchange/mail server. Works fine. The second alias contains only a pager which also works fine.... (2 Replies)
Discussion started by: itik
2 Replies
Login or Register to Ask a Question