Re: How to write a condition in Bourne shell

2007-11-05 Thread Tino Engel
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 an

Re: How to write a condition in Bourne shell

2007-11-05 Thread Giorgos Keramidas
On 2007-11-05 14:03, Olivier Nicole <[EMAIL PROTECTED]> wrote: > 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? Try something like... retry