PIP.IO
Class Bash

java.lang.Object
  extended by PIP.IO.Bash

public class Bash
extends java.lang.Object


Constructor Summary
Bash()
           
 
Method Summary
static java.io.InputStream runCmd(java.lang.String cmd)
           
static java.io.InputStream runCmd(java.lang.String cmd, java.lang.String[] env)
          This getiRMSD runs stamp on the command line and deals with the fact that if the output of the program is over a certain size.
static java.io.InputStream runCmd(java.lang.String cmd, java.lang.String[] env, java.io.File dir)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bash

public Bash()
Method Detail

runCmd

public static java.io.InputStream runCmd(java.lang.String cmd)
                                  throws java.io.IOException,
                                         java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

runCmd

public static java.io.InputStream runCmd(java.lang.String cmd,
                                         java.lang.String[] env)
                                  throws java.io.IOException,
                                         java.lang.InterruptedException
This getiRMSD runs stamp on the command line and deals with the fact that if the output of the program is over a certain size. If you do not deal with the output and it is large then the program never returns and the whole program stops...

Parameters:
cmd -
env -
Returns:
Throws:
java.io.IOException
java.lang.InterruptedException

runCmd

public static java.io.InputStream runCmd(java.lang.String cmd,
                                         java.lang.String[] env,
                                         java.io.File dir)
                                  throws java.io.IOException,
                                         java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException