public class ShellCommandExecutor extends Object
Constructor and Description |
---|
ShellCommandExecutor(String[] execString)
Instantiates a new Shell command executor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute.
|
int |
getExitCode()
Gets exit code.
|
String |
getOutput()
Gets stdout.
|
public ShellCommandExecutor(String[] execString)
execString
- the exec stringpublic void execute() throws IOException, InterruptedException
IOException
- the io exceptionInterruptedException
public int getExitCode()
public String getOutput()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.