Hi,
I have just installed version 1.5.19 of this script. As far as I can see there is at least two places where the check towards $? is done following an echo statement. As far as I have figured out this causes the test to be successful unless echoing to the screen fails for some reason and that is not the intention.
The ones I've found are in 2.1.1:
for p in ${PIDs}; do
echo "`date`, Found Nmon instance running with PID ${p}, will verify if it is App related"
if [ $? -eq 0 ]; then
and in 2.1.2.2
verify_pid $p | grep -v grep | grep ${APP_VAR} >/dev/null
echo "`date`, Found Nmon instance running with PID ${p}, will verify if it is App related"
if [ $? -eq 0 ]; then
The latter is killing off any nmon sessions I have running which is inconvenient.
Is it possible to fix this?
Best regards,
Tommy
... View more