![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to monitor process running on server and posting a mail if any process is dead | pradeepmacha | Shell Programming and Scripting | 13 | 03-06-2009 07:33 AM |
| check process running | rose1207 | Shell Programming and Scripting | 4 | 12-28-2007 01:23 AM |
| Script to check running processes on remote server. | amitsayshii | Shell Programming and Scripting | 5 | 10-06-2006 03:43 AM |
| How to check for specific process running through shell | agp | Shell Programming and Scripting | 3 | 03-25-2006 06:24 AM |
| script to check for a particular process and alert if its not running | goks | Shell Programming and Scripting | 1 | 12-09-2005 05:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to check if a process is running in a server from shell script.
I want to write a unix shell script that will check if a process (say debu) is running in the server or not. If no , then send a mail to the corresponding person to start the process???
|
|
||||
|
Quote:
YOu can check the process state table with grep on the name of the process you wished to check. ps -ef | grep "debu" > maillist.txt if [ -s maillist.txt ] ; then echo "Process is Running "else cat maillist.txt | mailx -s "ALARM !!" abc@aol.com fi Hope this'll work for you. Thanks Varun |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|