Re: Exit from a while loop ...

From: Florian Stiassny (flo_at_xvnews.unconfigured.domain)
Date: 09/05/03


Date: 5 Sep 2003 12:24:26 GMT

In article 9A2E845A@teledetection.fr, Guy Roussin <guy.roussin@teledetection.fr> writes:
>Hi,
>
>I wrote a little sh script which make ufsdumps of partitions
>on some solaris stations
>I read hosts and parttitions names from a config
>file (save.cfg)
>The problem is that the script exit from the while loop
>after the first ufsdump !
>If i comment the rsh line (#rsh ...) the while loop works
>fine !
>
>Thank you.
>
>Guy Roussin
>
>-------------
>#!/bin/sh
>dest="/dump/"
>(
>while read v1 v2
>do
>echo "Dump de $v1:/$v2 sur lct15:$dest$v1.$v2.dump.Z"
>rsh $v1 "/usr/sbin/ufsdump 0uf - /$v2" | /bin/compress > $dest$v1.$v2.dump.Z
>echo
>done
>) < save.cfg
>-------------

try with rsh -n

---
                        \|/
                        o o
 ___________________oOO_(_)_OOo______________________________________
Florian Stiassny                        Florian.Stiassny@motorola.com


Relevant Pages