Caros colegas,
Agrade�o a contribu���o de todos e tb acabei fazendo um script, veja abaixo. =========== INCIO ====================== #!/bin/sh cd /usr/local/uvscan/ rm -rf readme.txt wget http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null # AVVER=`head -1 readme.txt | cut -d' ' -f8` # AVVER=`fgrep "DAT Version: " readme.txt | cut -d':' -f2 | cut -d'.' -f1` AVVER=`fgrep "DAT Version: " readme.txt | cut -d':' -f2 | cut -b 8-11` # echo "dat-" $AVVER ".tar" #AVVER=4321 if [ ! -f dat-$AVVER.tar ]; then for i in *.tar ; do mv $i $i.old done if wget http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar >/dev/null; then for i in *.dat ; do cp -p $i $i.bak done if tar xf dat-$AVVER.tar; then rm -f *.old echo `date` Successfully updated antiv�rus DAT files to $AVVER fi fi fi =========== FIM ======================== Grato a todos !!!! Adriano Frare --------------------------------------------------------------------------- Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br Regras de utiliza��o da lista: http://linux-br.conectiva.com.br FAQ: http://www.zago.eti.br/menu.html
