>> I feel that THERE MUST BE a clean way to do it in bash where the main stream >> can run to its natural completion unaffected by what goes on beyond (to the >> right of) the TEE (the 'tee' command). > > no way at all.
correction. there is a way... instead of ls -la | tee my.log you have to use mkfifo xyz tee my.log <xyz & ls -la >xyz 2>&1 rm xyz mkfifo creates a 'named pipe' tee is running in the background as long as the xyz exists ls writes stdin + stderr to the pipefile mit freundlichen grĂ¼ssen tobias gasser -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page