Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
getting command output
Name: thanatos Date: February 16, 2005 at 08:33:32 Pacific OS: linux CPU/Ram: intel pentium 4 256mb
Comment:
Does anyone know how to execute a linux command from a c program and get the output of the command in a string instead of on the console?
Eg, system("pwd") won't work becuase the output goes to the console. I'd need something like
Summary: I'm trying to send basic commands to and from the modem but I can't seem to figure out how to get the output from the modem device. I can send commands to the modem like so: echo "ATZ" > /dev/modem bu...
Summary: Its sort of a general question I want to know some general usage of netstat command since it has got so many complicated swtiches and im not getting the output Specifically what does the "flag" specif...