![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
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 |
| killing the process | arthi | UNIX for Dummies Questions & Answers | 3 | 06-03-2008 09:57 AM |
| Reg process of killing | shanshine | SUN Solaris | 6 | 12-05-2007 02:50 PM |
| killing a process | bbhayana | UNIX for Dummies Questions & Answers | 6 | 06-02-2007 08:58 AM |
| killing a process pid | jo calamine | UNIX for Advanced & Expert Users | 16 | 12-04-2006 07:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Killing of a process and send a mail if the process doesnot come up within 2 minutes
Hi Friends,
I am new to this forum as well as new to shell scripting. I have a problem here and i need someone to solve this. Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the argument . There is a automated system which detects which process is killed and it starts the process up within two minutes.This is the summary. Now what i want is:- The program should contain these features:_ 1. It will take the PID of the two process. 2. kill the process with the help of the script(killtheprocess). The script should contain the two process names(i.e abc & def) . 3. After the process is killed, it should be able to detect if the two particular process has come up within two minutes by the help of the automated sytem 4. If the process comes up then it will send a mail to a group of people that everything is fine . 5. if the process doesnot come up then it should send a mail to a group of people that it needs to be manually started. 6. For confirmation that the process has indeed gone down and come up the two PIDs should be different. It is urgent . Please help me out. If soemone needs some more clarification then please reply. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|