All pastes #561045 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-12 09:51 UTC
rendered paste body
try
        {
            String command = "ps aux";
            Process process = Runtime.getRuntime().exec(command);
            BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
            String data = "";
            while((data = reader.readLine()) != null)
            {
                System.out.print(data);
            }
            System.out.println("** END OF LOOP **");
        }
        catch(IOException ioexception)
        {
            ioexception.printStackTrace();
        }