tags:

views:

30

answers:

1

Is it possible to execute iwconfig (or any other shell based program) from a java application and then parse the output somehow?

If yes, how?

+2  A: 

Yes, by using the ProcessBuilder API.

Jonathan Feinberg
+1 for teaching me a new API. It's new since 1.5 and I'd never seen it before. Old school was `Runtime.exec()`.
Carl Smotricz
That's right. Check out the inimitable Roedy Green for a nice exegesis of the API. http://mindprod.com/jgloss/exec.html#PROCESSBUILDER
Jonathan Feinberg