Assuming you need to do it all manually, how about redirecting output to a temporary file? Then you can echo the temporary file to the screen as well as append it to your log file.
tux4life commented: Nice post :) +8
chococrack commented: always a delight +2
iamthwee commented: No _jsw variables... This deserves +ve rep. +13
Geekitygeek commented: true, true and umm...true :) +0
Narue 5,707 Bad Cop Team Colleague