Re: [gentoo-server] Scripting fun

2008-07-16 Thread A. Khattri
On Tue, 10 Jun 2008, Marius Mauch wrote: Or just use `glsa-check --mail affected` ;) Or use glcu. -- A -- gentoo-server@lists.gentoo.org mailing list

Re: [gentoo-server] Scripting fun

2008-06-30 Thread Korthrun
On Mon, Jun 9, 2008 at 7:59 PM, JD Gray <[EMAIL PROTECTED]> wrote: > I'm running the below script on my gentoo servers to email me whenever > there are GLSA's affecting me. It works like a charm, but I have one > beef with it. Newlines are not preserved, so I get a lovely Wall Of > Text (tm) when e

Re: [gentoo-server] Scripting fun

2008-06-09 Thread Marius Mauch
On Tue, 10 Jun 2008 00:52:01 -0300 "Francisco Ares" <[EMAIL PROTECTED]> wrote: > Check this: > > http://gentoo-wiki.com/SECURITY_Getting_GLSAs_by_Email > Or just use `glsa-check --mail affected` ;) Marius -- Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was not

Re: [gentoo-server] Scripting fun

2008-06-09 Thread W.Kenworthy
oops - pulled that from an old system - at the end just use: ";glsa-check -vt all" The first run with grep is redundant - possibly worked with the first glsa-check versions ... BillK On Tue, 20 08-06-10 at 11:39 +0800, W.Kenworthy wrote: > Put something like this in [f]crontab: > > %daily,la

Re: [gentoo-server] Scripting fun

2008-06-09 Thread Francisco Ares
Check this: http://gentoo-wiki.com/SECURITY_Getting_GLSAs_by_Email Hope it helps Francisco -- "If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have one idea and we exchange these ideas, then each of us

Re: [gentoo-server] Scripting fun

2008-06-09 Thread W.Kenworthy
Put something like this in [f]crontab: %daily,lavg(1.5,2,2) * 3-9 root rsync --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 rsync://rsync.gentoo.org/gentoo-portage/metadata/glsa/* /usr/portage/metadata/glsa/ ;glsa-che

Re: [gentoo-server] Scripting fun

2008-06-09 Thread RijilV
echo "$CHECK_RESULT" | /bin/mail -s "$HOSTNAME glsa-check" [EMAIL PROTECTED] FWIW $HOSTNAME should be present in the standard environmnet, makes the script a bit more protable if you use it. Also, is there a reason you're running the command twice? Moreover, if you set it up as a cronjob you cou

[gentoo-server] Scripting fun

2008-06-09 Thread JD Gray
I'm running the below script on my gentoo servers to email me whenever there are GLSA's affecting me. It works like a charm, but I have one beef with it. Newlines are not preserved, so I get a lovely Wall Of Text (tm) when ever it sends me the GLSA. I'm guessing this is because of the way bash hand