while [ $? -ne 0 -a $retry -gt 0 ]
do
   ...
done

should do the work 

Am Montag 05 November 2007 07:03 schrieb Olivier Nicole:
> Hi,
>
> I am a lame Bourne sheel programmer, how to write:
>
>     while [ ( $? -ne 0 ) -a ( $retry -gt 0 ) ] ; do
>
> that should execute as long as $? is not null and $retry is greater
> than 0?
>
> TIA,
>
> Olivier
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Attachment: pgprwqoiKJ4BN.pgp
Description: PGP signature

Reply via email to