Using tee to create a log

Kevin Buettner plug-discuss@lists.PLUG.phoenix.az.us
Thu, 26 Jul 2001 13:59:35 -0700


On Jul 26,  1:29pm, Alan Dayley wrote:

> So, is there a version of tee that captures stderr too?  Hmm... A
> programming project...

Just do

    somecommand 2>&1 | tee logfile

Kevin