unixisgood
Technical User
Hi all,
I need a script that will look for some running proccess.Proccess names are have same content as `STARTPROC` but those works for all filesystem ,it will also look that any duplicates of them. STARPROC has to be work only once for every single filesystem.
regarding below proccess list . The script will check that is there any duplicate proccess. For example there are two /a5/script/STARTPROC, it will kill second one which has started after first one. I assume script can catch this from starting time of proccess.
/a1/script/STARTPROC
/a2/script/STARTPROC
/a3/script/STARTPROC
/a4/script/STARTPROC
/a5/script/STARTPROC
/a5/script/STARTPROC
/a6/script/STARTPROC
/a7/script/STARTPROC
/a8/script/STARTPROC
/a9/script/STARTPROC
If is this possible to write a script i will put it into crontab file to run it every 10 minutes.
Thanks for any help.
I need a script that will look for some running proccess.Proccess names are have same content as `STARTPROC` but those works for all filesystem ,it will also look that any duplicates of them. STARPROC has to be work only once for every single filesystem.
regarding below proccess list . The script will check that is there any duplicate proccess. For example there are two /a5/script/STARTPROC, it will kill second one which has started after first one. I assume script can catch this from starting time of proccess.
/a1/script/STARTPROC
/a2/script/STARTPROC
/a3/script/STARTPROC
/a4/script/STARTPROC
/a5/script/STARTPROC
/a5/script/STARTPROC
/a6/script/STARTPROC
/a7/script/STARTPROC
/a8/script/STARTPROC
/a9/script/STARTPROC
If is this possible to write a script i will put it into crontab file to run it every 10 minutes.
Thanks for any help.