[SLUG] sending output to both screen and log file, how ?
To: slug@xxxxxxxxxxx
Subject: [SLUG] sending output to both screen and log file, how ?
From: Voytek Eymont <voytek@xxxxxxxxxx>
Date: Wed, 18 Aug 2004 22:06:54
Reply-to: Voytek Eymont <voytek@xxxxxxxxxx>
I have something like:
echo "$now $0 executed for $DOMAIN on in $exectime sec" >> /var/log/awstats.log
how can I also send it to screen without repeating the echo line ?
Voytek