On linux/solaris machine i am executing one command through Java , now I want to collect the output of this command in a Java stream.Any suggestion how to do that.?
Asked
Active
Viewed 21 times
0
-
what's the command? – nlloyd Jul 01 '16 at 04:21
-
1check out the Process Builder API. you can get the outputstream of that http://stackoverflow.com/questions/3468987/executing-another-application-from-java – slipperyseal Jul 01 '16 at 04:30
-
@nlloyd - the command i am using is 'sar -A 1' – Abhishek Jul 01 '16 at 04:33