Search Results

Search: Posts Made By: jeffw_00
5,209
Posted By jeffw_00
pseudocoder - that looks like it would work, but...
pseudocoder - that looks like it would work, but I wonder when the command is actually executed. If it's executed during the OPEN and then hangs, I don't think it will ever get to the first print...
5,209
Posted By jeffw_00
Ummm - well thanks then. Although a useful...
Ummm - well thanks then. Although a useful answer, it doesn't match my question :).

Is there any way to direct the output of a system cmd to an array and the screen simultaneously?
5,209
Posted By jeffw_00
well, first, apparently ActivePerl doesn't...
well, first, apparently ActivePerl doesn't support Tee. But if it did, are you saying this would work?

#!/usr/bin/perl -w

use Tee;

tee("dir",@results); # puts output of "dir" results to...
5,209
Posted By jeffw_00
Perl: Tee system-command to SYSOUT and @array? (not > file)
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...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy