in reply to Re^3: Redirecting Output to shell command from within perl
in thread Redirecting Output to shell command from within perl
If you redirect output to an interactive command from within a program, I would expect different results to having done it from the command line; but then I wouldn't do it, because it doesn't seem useful, but try this:
open STDOUT, '| tee -i null | more';; print "hello world! $_" for 1.. 1000; close STDOUT; exit;;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Redirecting Output to shell command from within perl
by LanX (Saint) on Feb 18, 2018 at 18:08 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2018 at 09:06 UTC | |
by LanX (Saint) on Feb 19, 2018 at 10:22 UTC |