Tugger the SLUGger!SLUG Mailing List Archives

RE: [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