Cirollo has asked for the wisdom of the Perl Monks concerning the following question:
FYI, tee is a program that simply replicates standard output.open(STDOUT, "| tee $filename"); # print normally, with output going to the browser and to the file $fi +lename close(STDOUT);
My problem is, I want to print only part out the output to a file - that is, print stuff to the browser, print more stuff to both the browser and the file, then just print to the browser again. So, what I want is to pipe things to tee, then turn it off - "unpipe" it.
Suggestions for doing this a completely different way are also very welcome, but I am not sure what modules are installed on this system so it might be better to avoid using any.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Multiple outputs in a CGI script
by tilly (Archbishop) on Aug 09, 2000 at 23:06 UTC | |
|
Re: Multiple outputs in a CGI script
by maverick (Curate) on Aug 09, 2000 at 23:10 UTC | |
by tilly (Archbishop) on Aug 09, 2000 at 23:45 UTC | |
by maverick (Curate) on Aug 09, 2000 at 23:54 UTC | |
|
Re: Multiple outputs in a CGI script
by chromatic (Archbishop) on Aug 09, 2000 at 23:08 UTC | |
|
Re: Multiple outputs in a CGI script
by Cirollo (Friar) on Aug 09, 2000 at 23:34 UTC |