open SYS, "command |" or die "$!"; while () { print } close SYS;