Use Process.spawn's option parameter for redirect.