Using tee to create a log

Páxina inicial
Anexos:
Mensaxe orixinal
+ (text/plain)
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Kevin Buettner
Data:  
Asunto: Using tee to create a log
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