Notes
[ul]
[li]ps -x puts the process id first[/li]
[li]Use awk, rather than grep, because you want to proces the output. Ok, you could use grep and then cut but awk will do both jobs in one[/li]
[li]Notice the !/awk/ condition. This stops the command picking up itself[/li]
[/ul]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.