Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~240 People Reached
Favorite Forums
Favorite Tags
Member Avatar for iarpana

import java.io.*; public class testprog { public static void main(String args[]) throws IOException, InterruptedException { String command="find BEL/ -type f | wc -l"; Process p=Runtime.getRuntime().exec(command); p.waitFor(); BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); String line=reader.readLine(); while(line!=null) { System.out.println(line); line=reader.readLine(); } System.out.println("Done"); } } It's return null value. plz help me

Member Avatar for jwenting
0
240