who cmd into an array
What is a good way to assign the output of system("who -u | grep comcast") into an array?
Would writing the system output into a file then reading the file into the array work?
Yes.
I always like to use popen() in these situations. Do a man on popen. Post back if you still have questions.
Topic archived. No new replies allowed.