Simple java library to spawn system processes. Expect to run command line tools and get some degree of control over input and output.
public class Example {
public static void main(String ...args) {
SyncRunCmd cmd = new SyncRunCmd("echo", "hello world").exec();
System.out.println(cmd.getOutResult()); // prints hello world
}
}
- Spawn a process
- Get results
- Never hang up (watchdog)
- Pass arguments
- Pass 'interactive' input
-
Run on another thread -
Get PID - Observe process (out, error, exception, time)
- Proper logging
- This library intentionally treats inputs and outputs as text. Do not pipe binary data to it, or it will break.