Hi - Within perl I want to execute a system command. I want to re-direct all the output from the command to a file (@result = `$cmd`
, but I ALSO want the results to be displayed on the screen (system("$cmd");
The reason is this - if the command completes, I want to process the output. If the command -hangs- (trying to debug a system problem), I want the output on the screen so I can see how far the command got.
Any easy way to do this in perl?
Thanks!
/j