jsen- / OneCommand

Easy creation and timed termination of processes capturing stdout and stderr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OneCommand

Easy creation and timed termination of processes capturing stdout and stderr

ProcessResult ping = Command.create("ping")
        .arg("localhost")
        .arg("-n")
        .arg("99")
        .stdout(Stdio.PIPE)
        .stderr(Stdio.PIPE)
        .start();

System.out.println(ping.rc + " " + ping.stdout + " " + ping.stderr);

About

Easy creation and timed termination of processes capturing stdout and stderr

License:Apache License 2.0


Languages

Language:Java 100.0%