perl -e "$pid = open PIPE, '-|', 'echo one two';$/=' '; while (){ print; kill 2, $pid}"