fork - How can I redirect the output of Perl's system() to a filehandle? -
with open command in perl, can use filehandle. have trouble getting exit code open command in perl.
with system command in perl, can exit code of program i'm running. want redirect stdout filehandle (no stderr).
my stdout going line-by-line output of key-value pairs want insert mao in perl. why want redirect stdout java program in perl. possible?
note: if errors, errors printed stderr. 1 possibility check if gets printed stderr can quite perl script.
you may want check out ipc::system::simple -- gives many options executing external commands, capturing output , return value, , optionally dying if bad result returned.
Comments
Post a Comment