Ruby - System Command - ps aux
So, I'm trying to find the PID of any process that has the word "control" in it. I'm in ruby on Linux. This is the basic code so far
`ps aux | grep control`
If I run this in ruby, all the crisp lines that come back when run on linux are concatenated into one long line. How can I read ruby results as a list rather than one long line?
+3
source to share
2 answers