-= 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@

--------------------------------------------------------------------------

Opinions, conclusions and other information in this message that do not
relate to the official business of Online Business Technologies Corp.
shall be understood as neither given nor endorsed by it. In such cases
Online Business Technologies Corp. will not bear the responsibility of
consequences.
If you have received this communication in error, please notify the
system manager immediately by responding to this email and then delete
it from your system.


A levelben foglalt, nem az Online Rt. hivatalos uzletmenetevel kapcsolatos
velemenyek vagy mas informaciok vonatkozasaban az Online Rt. nem vallal
felelosseget.
Amennyiben a level valamely hiba folytan jutott Onhoz, kerjuk, hogy
valaszlevelben azonnal ertesitse a rendszer uzemeltetojet, majd torolje ki
a levelet rendszerebol!


--
[email protected] mailing list

Reply via email to