Re: [dwm] -offtopic duplicate stdout to logfile in C?

From: <Deleuze_AT_gmx.net>
Date: Fri, 22 Jun 2007 18:30:45 +0200

> > Hackerz,
> >
> > I have one stream, that writes to stdout. Now I want to log it, works
> fine
> > with a different pointer, but what's the best way to duplicate the
> existing stream that already is printed to stdout to a logfile? Of course, 2
> fprintfs is no pr0n at all :)
>
> You probably want tee(1).

Thanks, I'll have a look at it.
 

> HTH, Jukka
HTH too :)

> bashian roulette:
> $ ((RANDOM%6)) || rm -rf ~
Hrmn, I'll recommand that my cow-orkers :P

Greetz pr0n@

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Received on Fri Jun 22 2007 - 18:31:16 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:55 UTC