- To: <slug@xxxxxxxxxxx>
- Subject: RE: [SLUG] sending output to both screen and log file, how ?
- From: "Roger Barnes" <Roger.Barnes@xxxxxxx>
- Date: Thu, 19 Aug 2004 13:17:49 +1000
- Thread-index: AcSFhQ7t2xL9U0QKQdS4XHliHT89DQAFZcrQ
- Thread-topic: [SLUG] sending output to both screen and log file, how ?
> Instead of tee the following should work also:
>
> echo "$now $0 executed for $DOMAIN on in $exectime sec" 1>&2
> >> /var/log/awstats.log
I think you may mean:
echo "$now $0 executed for $DOMAIN on in $exectime sec" >> /var/log/awstats.log 1>&2
[tested]
- Rog