Date: Sat, 12 May 2001 11:43:10 -0700 From: Doug Barton <DougB@DougBarton.net> To: Doug Young <dougy@brizzie.org> Cc: "G. Jason Middleton" <gmiddl1@gl.umbc.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: how to email logs files Message-ID: <3AFD843E.4F10E5E5@DougBarton.net> References: <Pine.LNX.4.31L.02.0105121020100.26113-100000@linux2.gl.umbc.edu> <00ba01c0daf5$55512d80$0300a8c0@oracle>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Young wrote: > To get a daily email of ppp.log, insert the following line in > "/etc/crontab" > > 30 1 * * * root cat /var/log/ppp.log | mail -s "nightly" > user@your_isp.com This is the second most useless use of cat. In general, anything you can do: cat foo | bar with you can also do: bar < foo with. It is definitely true in the case of 'mail'. Good luck, Doug PS, the prototypical useless use of cat is, 'cat file | more' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AFD843E.4F10E5E5>