Tuesday, May 31, 2016

List of PIDs only

I wanted a list of pids only so I could run them through a while loop for processing. To get just a list of pids on Linux I used:

ps --no-headers -o pid -C processname

No comments:

Post a Comment