Date: Wed, 27 Jun 2001 10:45:18 -0500 From: Mike Meyer <mwm@mired.org> To: "Jason Halbert" <jason@jason-n3xt.org> Cc: questions@freebsd.org Subject: RE: daily/weekly/monthly run Message-ID: <15161.65422.323865.212490@guru.mired.org> In-Reply-To: <56504431@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
GJason Halbert <jason@jason-n3xt.org> types: > Yeesh.. talk about confusing the poor guy. Yup, I think you've certainly added to the confusion. The easiest way to do what Marcel asked, no matter *what* MTA you're using, without worrying about compiling things, is to add the three lines: daily_output="user" weekly_output="user" monthly_output="user" to /etc/periodic.conf. For more information on the periodic system, see the periodic.conf man page, and /etc/defaults/periodic.conf. The difference between the two approaches is that tweaking /etc/periodic.conf does exactly what the user asked for; adding an alias for root redirects all root mail, not just the reports that Marcel asked about. <mike > If he is able to retrieve the run reports then most likely he has root > access. I think the easiest way is to set up an alias. > > If you are using sendmail then you can in /etc/mail/aliases you can > uncomment a line and have mail sent to root (which the run reports are sent > to) sent to another user. > > -OR- > > You can add a line to /etc/mail/virtusertable if you want to have the mail > sent to an e-mail address not on your own box. The file in /etc/mail has > the information as well as man pages. > > Be sure to run "make" if you change any of those files. > > --- > Jason > jason@jason-n3xt.org > > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Yonatan Bokovza > Sent: Tuesday, June 26, 2001 12:12 PM > To: 'Marcel Dijk' > Cc: freebsd-questions@FreeBSD.ORG > Subject: RE: daily/weekly/monthly run > > > Hi, > Start with reading periodic(8) and periodic.conf(5) > man pages. > Continue with copying /etc/defaults/periodic.conf > to /etc and changing the lines of > {daily|weekly|monthly}_output > to the selected mail. > > > -----Original Message----- > > From: Marcel Dijk [mailto:nascar24@home.nl] > > Sent: Tuesday, June 26, 2001 19:39 > > Cc: freebsd-questions@FreeBSD.ORG > > Subject: daily/weekly/monthly run > > > > > > Hello, > > > > Is it possible to get the daily/weekly and monthly run > > outputs e-mailed to a > > specified e-mail address? > > > > Marcel > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. 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?15161.65422.323865.212490>