Using tee to create a log

Kurt Granroth plug-discuss@lists.PLUG.phoenix.az.us
Thu, 26 Jul 2001 12:53:17 -0700


On Thu, 26 July 2001, Alan Dayley wrote:
> I have a command line utility that spits out data on the screen as it
> runs. I want to capture this data to a "log" file so I can read it later.
>  I have been told the tee command will do this for me but I can't seem to
> get the command line correct as the log file is always empty.

This should do it:

% your_utility | tee output.log

Mind you, 'tee' only works on stdout so if your utilties output is really on 
stderr, it won't capture it by default.
-- 
Kurt Granroth            | http://www.granroth.org
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org         | granroth@suse.com
            KDE -- Conquer Your Desktop