my $pid = open($mypipe, '-|', "$cmd $host "); [download]
In reply to Closing console window in Windows by Proclus