Hi
I have a script running overnight to kill jboss process ..
Code:
for i in `ps -elfx|grep -i JBoss|grep -v grep|sed 's/[ ][ ]*/,/g'|cut -d',' -f4`
do
echo killing process $i
kill -9 $i
done
however, the script isn't killing off all the processes.
If I run the ps command, it is picking up all the processes correctly.
This seems to randomly happen.
I have tried running the script as the user of the procesess and as root, with the same random results.
Any idea's?
PS: This is on HPUX.
Thanks in advance