We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone ! Is there anyway I can parse the output of a cmd line program , e.g. ping , and use this output with processing ? Thank you in advance
Answers
See the open() command, I think.
@PhiLho: can you get the output of cmd and use it to your sketch ? Thank you !
With open(), it can be a bit hard, unless you use redirection to a file that you read afterward.
Otherwise, you have to dive into Java, eg. using ProcessBuilder (they give an example).
Ok thank you ! I will try that . If anyone has any example for this and wants to share it here, I would be more than happy ! Cheers
Do you know the main site has an efficient search? Example:
https://www.google.fr/search?as_sitesearch=processing.org&as_q=ProcessBuilder
One link found: http://forum.processing.org/two/discussion/1811/waiting-for-an-external-process-to-complete
Etc.
Great thanks !