Originally posted by: Maynero
Hi, the dump is right, but the problem is with wc -l either grep -c flag. The same problem. I've changed the code script test_carlos_ps.ksh to:
ps -fe|grep -i test_carlos_ps.ksh | grep -v grep
a=`ps -fe | grep -i -c test_carlos_ps.ksh | grep -v grep `
echo $a
I do nohup test_carlos_ps.ksh and the output is:
rating 635008 1429644 4 11:53:26 pts/9 0:00 sh -- ./test_carlos_ps.ksh
2
This "2" value is wrong, must be 1!!, Depends of the execution it could change correctly 1 and sometimes even 3!. I think it's an AIX bug. Don't you think? I am testing in a multi-processor machine.
#AIX-Forum