|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.util.RunScript
public class RunScript
Title: RunScript
Description : Accepts the command and runs the shell script
| Constructor Summary | |
|---|---|
RunScript()
|
|
| Method Summary | |
|---|---|
static void |
displayOutput(InputStream is)
display the input stream |
static int |
displayProcessStatus(Process pr,
String outFile,
String errFile)
Display the process status while it is executing |
static int |
runScript(String[] command)
accepts the command and executes on java runtime environment |
static int |
runScript(String[] command,
String outFile,
String errFile)
accepts the command and executes on java runtime environment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RunScript()
| Method Detail |
|---|
public static int runScript(String[] command,
String outFile,
String errFile)
command - : command to executepublic static int runScript(String[] command)
command - : command to execute
public static void displayOutput(InputStream is)
throws Exception
is - inputstream
Exception
public static int displayProcessStatus(Process pr,
String outFile,
String errFile)
throws IOException
pr -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||