[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: urgent : probleme avec variable dans script ssh



Bonjour,
Et pourquoi pas :
cp -pr /directory/* /other_location
Tout simplement.
A+
Philou75
Le Mercredi 25 Janvier 2006 13:05, Patrice OLIVER a écrit :
> Bonjour,
> Je suis d'accord avec Bruno Bertreau.
> cp -pr /directory/$o ...
>
> donnera par exemple /directory/directory/rep   s'il existe un
> sous-répertoire rep dans le répertoire directory.
>
> Patrice.
>
> Le 25/01/06, Bruno Berteau <b.berteau@free.fr> a écrit :
> > Quoting Stephane Durieux <durieux42@yahoo.fr>:
> > > bonjour
> >
> > Bonjour,
> >
> > > je rencontre un probleme dans un script ssh
> > > ssh host <<EOF
> > >     for o in /directory/*
> > >     do
> > >             cp -pr /directory/$o /other_location
> >
> > ça ne serait pas plutôt cp -pr $o /other_location
> > ?
> >
> > > la variable o ne semble pas definie ou plutot uniquement sur l hote
> > > distant le probleme est qu ell
> >
> > Cordialement.
> >
> > --
> > Bruno Berteau
> > http://b.berteau.free.fr



Reply to: