Package org.apache.pulsar.utils
Class CmdUtility
java.lang.Object
org.apache.pulsar.utils.CmdUtility
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CmdUtility
public CmdUtility()
-
-
Method Details
-
exec
Executes the specified string command in a separate process. STDOUT and STDERR output will be buffered to the givenwriter(Writer) argument.- Parameters:
writer- stdout and stderr outputcommand- a specified system command- Returns:
- exitValue 0: success, Non-zero: failure
- Throws:
IOException
-