Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws Exception{
- String [] command = {"cat", "/home/thepasto/prova_"};
- Process p = Runtime.getRuntime().exec(command);
- BufferedReader in = new BufferedReader(
- new InputStreamReader(p.getInputStream()));
- String line = null;
- while ((line = in.readLine()) != null) {
- System.out.println("Linea "+line);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement