rsh dela potize
Martin Mačok
martin.macok na underground.cz
Pondělí Leden 28 13:30:44 CET 2002
On Mon, Jan 28, 2002 at 12:29:31PM +0100, sci wrote:
> cat file.list | (
> while read FILENAME
> do
> /usr/bin/rsh -l user host ls /home/user/dir/
> echo $FILENAME
> done
> )
>
> a v souboru file.list je nekolik radek.
>
> Smycka mi ovsem probehne jen jednou a zjistil jsem, ze to je diky te
> radce s rsh ...
> Kdyz ji odstranim, skript probehne cely. V cem je problem?
Pravdepodobne to rsh sezere ten zbytek souboru "file.list" ze
standardniho vstupu. Bud tomu rsh dejte explicitne nejaky jiny
standardni vstup, anebo ho napr. pomoci nejakych prepinacu ukecejte,
aby ten standardni vstup necetl. (pouzivam podobne veci s "ssh" a tyto
problemy nemam)
--
Martin Mačok http://underground.cz/
martin.macok na underground.cz http://Xtrmntr.org/ORBman/
Další informace o konferenci Linux