[MASOCH-L] RES: Script utilizando rsync

Edison Bortolin edison at coslinux.com.br
Wed Feb 27 16:53:06 BRT 2008


Puxa! Agora sim uma solução elegante!

Mas também, convenhamos, o Nelson Murilo já passou por isso antes. Eu
verifiquei o chkrootkit e lá está o

IFS='
'

man bash:

 IFS    The Internal Field Separator that is used for word splitting after
expansion and to split lines into words with the read  builtin  command.
The
              default value is ââ<space><tab><newline>ââ.

Valeu pela dica!

[ ] ´s

Edison Bortolin

2008/2/27, Nelson Murilo <nelson at pangeia.com.br>:
>
>
>
> > 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>
>
>
>
>
>
> __
> masoch-l list
> https://eng.registro.br/mailman/listinfo/masoch-l
>


More information about the masoch-l mailing list