I tried the system(dos_command), but it returns 0 if the command ran successful. So if I ping a machine using this command, it is always going to return 0 whether the machine "replied" or "request timed out".
i forgot to mention - the output is sent to STDOUT which is the equivalent of writing the output to the console. All you need to do is is check the output in STDOUT
[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.