Hi,
Am working in a filenet domain where we are using AIX as our terminal to run the jobs and schedule the shell scripts to run . In my previous post regarding the "Log modification with finding errors"
https://www.unix.com/shell-programmin...nt-time-2.html Gabriel has helped me thoroughly to complete the entire script. Thanks for the help Gab. The script was sent to my leads to get their reviews. Will keep you posted there if i get any updates.
The next thing which i started here to begin our conversation is - In filenet there are 4 image services HPII COLD POST BES.
When we give
ps -ef|grep HPII , it will display a output ending with ./HPII_import and ./HPII_val.
When we give
ps -ef|grep cold , it will display a output ending with ./cold_daily.ksh and COLD_3770.
When we give
ps -ef|grep bes_commit , it will display a output ending with bes_commit 1 and bes_commit 2
When we give
ps -ef|grep post , it will display a output ending with
./postindex_daily.ksh
I need to use a IF condition added with the above ps statements, if the resulting output comes it should send us a status , for HPII - " HPII is running fine without any issues ". for post - "POST Index services is fine" . same for other too.
Could some one help me out with this IF conditional statement added with PS . I should schedule this script for every 1 hour. NOTE: This should work in AIX terminal.