Separate names with a comma.
Discussion in 'Mac Programming' started by ashokformac, Apr 3, 2007.
how to execute a shell command from java on a mac machine..
thanks in advance
The same way as any other machine. Via Runtime exec methods. The return a Process object which gives you access to stdin, stdout and stderr of the process. Wrap these in BufferedReader/Writer objects and you are good to go.