343GuiltySpark
November 1st, 2010, 05:17 PM
Hi,
I'm designing a little server to use at home, but I need to have it run cd and ls at some points.
Problem is, I don't know how I can do it.
How can I run a program (e.g, ls) and then read its output? (technically I don't really need to read it, it's enough I send it to the client).
Thanks!
I'm designing a little server to use at home, but I need to have it run cd and ls at some points.
Problem is, I don't know how I can do it.
How can I run a program (e.g, ls) and then read its output? (technically I don't really need to read it, it's enough I send it to the client).
Thanks!