My friend Jason just posted a really cool command line trick that lets you log stderr and stdout to different files while still having them visible in the console.
($command | tee /logs/stdout.txt) 3>&1 1>&2 2>&3 | tee /logs/stderr.txt
Very cool.
[ Jason Ormes ]
tcpdump Tutoriallsof Introductiongit Primerfind Command lsof Commandtar Referencelsof TutorialDaniel Miessler | 1999-2012 | Share Alike
Powered by Linode