Hi
I am trying to grep the name of the user running a specific process on one of my systems.
[apm@ccbapprts1 enterprisemanager]$ ps -efl | grep 'Introscope_WebView.lax' | grep -v grep| awk '{print $3}'
[apm@ccbapprts1 enterprisemanager]$ ps -efl | grep 'Introscope_WebView.lax'
0 S apm 14572 17108 0 80 0 - 28164 pipe_w 10:31 pts/4 00:00:00 grep --color=auto Introscope_WebView.lax
I would presume that would return "apm" but nothing appears
When I do the same code on a different unix server it works as expected:
[casupport@wycvlapph048 ~]$ ps -efl | grep 'Introscope_WebView.lax' | grep -v grep| awk '{print $3}'
50011
[casupport@wycvlapph048 ~]$ ps -efl | grep 'Introscope_WebView.lax'
0 S 50011 635 32387 0 80 0 - 25830 pipe_w 10:25 pts/0 00:00:00 grep Introscope_WebView.lax
Why is this?
Cheers
Alex