proc-ctl 0.4.1

A helper library for querying and manipulating processes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env::args;
use std::process::Command;

pub fn main() {
    let mut args = args().skip(1);
    let child_program = args.next().unwrap();

    Command::new(child_program)
        .args(args)
        .spawn()
        .unwrap()
        .wait()
        .unwrap();
}