![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WiKID Strong Authentication System 3.0.0 (J2ME Wilreless Cell Phone Token branch) | iBot | Software Releases - RSS News | 0 | 05-28-2008 06:40 PM |
| mail, aliases, pager | itik | AIX | 2 | 01-30-2008 08:57 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
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? |
|||
| Google The UNIX and Linux Forums |