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