> Neil Bothwick schreef: >> On Tue, 14 Jun 2005 13:21:33 +0200, Holly Bostick wrote: >> >> >>Indeed it is.... as long as you remember to update-eix after an esync >>(or emerge sync). Gotta put that in as a cron job or something-- or is >>there a better way to keep the index current? >> >> > I run this script as a cron job in the early hours > > #!/bin/bash > > emerge --sync > emerge world --update --deep --newuse --pretend --verbose \ > | Mail -s "Updated packages for $(hostname)" neil > glsa-check 2>/dev/null --test all | Mail -s "GLSA check on $(hostname)" neil > update-eix > emerge world -uDNf &>/dev/null >
OK, not so much to go off on a tangent (even though I am, so I split this off the original thread), but this brings me to another question that I've been meaning to ask. I want esync to be a cron job, and mail me the list of new and updated packages. But I don't have a mail server (or maybe I do, I dunno, I've got some standard MTA anyway, afaik), and I have no idea how to read my local mailspool even if it's working, which I also don't know. I just want cron (generally) to mail any output to me via my regular ISP, rather than to root, via the local mailspool. Now, I found a program (email) that is supposed to let you do this, but I've tried twice to figure this out, and I'm lost, both in how to configure it, and how to configure cron to use it, definitely for the pre-existing standard cron jobs like updatedb and such. Or am I supposed to configure whatever MTA I have as a relay agent to my ISP's SMTP server, make an alias to my email address and just let cron do what it normally does (I know all the buzzwords, but what am I talking about? I have no idea.)? I'm sure this should be a supported and relatively simple operation, but it doesn't seem too well documented for the user (as opposed to for the server admin, who probably has a mail server all set up). Can anyone give me suggestions or instruction on how to get cron to mail it's output to my email address, using my ISP's outgoing server? Thanks, Holly -- [email protected] mailing list

