begin  quote
On Sat, 23 Aug 2003 01:09:53 +1000
blade- <[EMAIL PROTECTED]> wrote:

> Thanks spider, here is the updated script:
> 
> #!/bin/sh
> 
> emerge sync > /dev/null
> 
> emerge -uDpv world > /root/pkg.tmp
> 
> (
>    echo "To: [EMAIL PROTECTED] <blade->"
>    echo "From: system <root>"
>    echo "Subject: Updates available"
>    echo The following updates are available:
>    echo
> 
> cat /root/pkg.tmp | grep ebuild ) 2>&1 | /usr/sbin/sendmail -t
> 
> rm /root/pkg.tmp
> 

you should probably use " around the fourth echo line too , consistency
at least. but it looks ok . (I'm sure somone  who's far more paranoid
than I am can come with comments)



 
> Does it matter about the emerge sync > /dev/null, it was coming back
> with some sort of error with 2>&1 so I was recieving another email
> from crontab with usr/bin/updates: line 2:
> anyway it seems to be working

Shouldn't matter unless portage errors out, and if it does I think you'd
want to know as well.


//Spider


-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to