Package de.iritgo.simplelife.process

Examples of de.iritgo.simplelife.process.NullStreamHandler


   */
  public static int startAndWaitAkteraProcess(String cmd, String args) throws IOException
  {
    Process proc = startAkteraProcess(cmd, args);

    new NullStreamHandler(proc.getInputStream());
    new NullStreamHandler(proc.getErrorStream());

    return waitForProcess(proc);
  }
View Full Code Here


   */
  public static int startAndWaitAkteraProcess(String cmd, String args, String dir) throws IOException
  {
    Process proc = startAkteraProcess(cmd, args, dir);

    new NullStreamHandler(proc.getInputStream());
    new NullStreamHandler(proc.getErrorStream());

    return waitForProcess(proc);
  }
View Full Code Here

              {
                sleep(5000);

                Process proc = SystemTools.startAkteraProcess("/usr/bin/sudo", "/sbin/shutdown -r now");

                new NullStreamHandler(proc.getInputStream());
                new NullStreamHandler(proc.getErrorStream());
              }
              catch (Exception x)
              {
              }
            }
View Full Code Here

TOP

Related Classes of de.iritgo.simplelife.process.NullStreamHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.