#!/bin/sh # $Id: log-stderr,v 1.1 2000/03/23 21:19:19 friedman Exp $ logfile="$1" shift { ${1+"$@"} 2>&1 1>&3 | tee -a "$logfile" 1>&2; } 3>&1