[MASOCH-L] RES: Script utilizando rsync

Nelson Murilo nelson at pangeia.com.br
Wed Feb 27 15:01:07 -03 2008



> RSYNC() {

OFS=$IFS
IFS=¨<TAB><ENTER>¨  # Insira as teclas <TAB> e <ENTER> 

>        for i in $(cat $DIRETORIOS)
>         do
>                              rsync -aguorpvzPCl --rsh="ssh -p $SSH_PORT
> -l $SSH_USER" $HOST:$i $TMP 2>> $LOGERRO
>
>                if [ $? != 0 ] ; then
>                        echo "Erro ao executar rsync" $DATA >> $LOGERRO
>                        echo "" >> $LOGERRO
>                        exit
>                fi
>        done

IFS=$OFS

>} 

Imagino que isso deve resolver. 

<a href=¨http://naopod.com>./nelson -murilo</a> 







More information about the masoch-l mailing list