my $return_code = system("system_command > /tmp/program.out"); open(FILE,"/tmp/program.out") || die "Cant open /tmp/program.out $!\n" +; my @output_file = <FILE>; close FILE; unlink("/tmp/program.out"); print STDOUT "return code ",$return_code>>8,"\n"; print STDOUT "@output_file";
In reply to Re: need both from system-call
by diarmuid
in thread need both from system-call
by physi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |