[nSLUG] Tee (was April Tech Talk)

Vlado Keselj vlado at dnlp.ca
Wed Apr 22 12:08:25 ADT 2015

On Wed, 22 Apr 2015, Hatem Nassrat wrote:

> On Wed, Apr 22, 2015 at 11:26 AM Vlado Keselj <vlado at dnlp.ca> wrote:
>       Yes, I would like to add thumbs up for tee as well.  I like to following
>       Perl idiom in some situations:
>        open(STDOUT, "|tee logfile.txt") or die "Can't redirect stdout";
>        open(STDERR, ">&STDOUT") or die "Can't dup stdout";
>       and from there on, just use normal print, etc., to write to the standard
>       output, while everything is recorded into the logfile.
> I misread this and got excited for a second. Thought NSLUG was getting 
> tee Shirts made :). A tee shirt would probably be really cool :P

Sure - we definitely have two source lines for the fornt of the tee-shirt.  
(Of course, printed upside-down so that shirt wearer can refer to it as 
needed.) :)

More information about the nSLUG mailing list