On Tue, 2005-02-01 at 11:03 +0100, Botykai Zsolt wrote:
> -= Eredeti üzenet (Original message) =-
> Dátum (Date): Mon, 31 Jan 2005 17:49:26 -0500
> Küldő (From): Dany Veilleux <[EMAIL PROTECTED]>
> Címzett (To): [EMAIL PROTECTED]
> Tárgy (Subject): [gentoo-user] E-Mailing the result of emerge -upv world
> 
> > I was looking for a script that will sync the portage tree and send by 
> > email the list of softwares that to be updated automatically. I did not 
> > find so during the last weekend and borrowed some codes from few sites 
> > on the Internet and build it.
> > 
> <snipped_code>> 
> > 
> > --
> > [email protected] mailing list
> 
> I'm usin something foud someshere on the forums or [EMAIL PROTECTED] earlier:
> 
> crontab entry:
>   45    23      *       *       1-6     /root/bin/ESEF.sh
> 
> /root/bin/ESEF.sh
> #!/bin/bash
> #update from script
> function emerge_sync {
>  emerge sync -q --nospinner &> /dev/null && echo "Portage Tree synced."
>  emerge -upDv --nospinner --newuse world | sed -e
> "s|dependencies.*\.\.\.|depend encies \.\.\.|g"
>  sleep 15s
>  emerge --nospinner --newuse -uDf world &> /dev/null && echo "Packages mostly
> do wnloaded."
>  /usr/sbin/eupdatedb.cron &> /dev/null && echo "Eupdatedb finished."
>  echo "Done!"
> }
> 
> senddate=$(date +"%Y-%m-%d %T")
> echo "Nightly Sync ($senddate)" > /root/nstemp
> emerge_sync >> /root/nstemp
> cat /root/nstemp | nail -s "ESEF.log"  [EMAIL PROTECTED]
> rm /root/nstemp
> 
> Works fine for me...
> 
> Zsoltik@

will that actually do the emerge or just show you the packages that need
to be upgraded?


--
[email protected] mailing list

Reply via email to