[Gllug] redirecting stdout to multiple files

Ben Fitzgerald ben_m_f at yahoo.co.uk
Fri Dec 15 19:01:11 UTC 2006


On Fri, Dec 15, 2006 at 05:31:02PM +0100, salsaman wrote:
> >I want to be able to have a single line that outputs to stdout and a
> >logfile without spawning a subshell by using a pipe. I'd imagine this
> >kind of thing must be in build scripts? I want two modes, though:
> >

> Why not just:
> tail -f logfile.txt &
> 
> Then anything sent to logfile.txt will also appear on the terminal.

Thanks to Gabriel, Tet and Richard. All came up with good answers.

Have a good weekend.

Ben.

-- 
Registered Linux user number 339435
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list