Re: if à travers ssh...

Pàgina inicial

Reply to this message
Autor: Jerome KIEFFER
Data:  
A: guilde
Assumpte: Re: if à travers ssh...
Le Fri, 23 Jul 2004 10:26:31 +0200
Patrice KARATCHENTZEFF <patrice.karatchentzeff-alplog@???> a écrit :
> $ ssh user@machine "ls -l /home/toto"
>
> cela fonctionne...
>
> Une idée ?


if est une sous commande de sh
ls est une commande.
jerome@taz:~$ which ls
/bin/ls
jerome@taz:~$ which if
jerome@taz:~$

quand tu execute ssh : il trouve pas "if" car il y a pas de shell de
lancé.

my 2 ¢
-- 
Jérôme KIEFFER  : http://www.terre-adelie.org
First they ignore you, then they laugh at you,
then they fight you, then you win.
                    Mahatma Gandhi (1869-1948)