![]() |
|
|
|
|
|||||||
| 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 07:57 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
|
|||
|
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 |
|
|||
|
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. |