Re: How to repeat a bash shell script until success

2017-07-17 Thread Ian Lambert via cygwin
On July 14, 2017 9:06:02 AM EDT, cyg Simple <> wrote: >On 7/14/2017 1:27 AM, Gary Johnson wrote: >> On 2017-07-12, Bryan Dunphy wrote: >>> I have a shell script, originally created for Mac OS X. that waits >>> for an external drive to be mounted (by . >> > >In reality the OP script appears to be e

Re: How to repeat a bash shell script until success

2017-07-17 Thread cyg Simple
On 7/15/2017 2:56 AM, Sorin Adrian Savu wrote: > On Fri, Jul 14, 2017 at 4:06 PM, cyg Simple wrote: >> >> On 7/14/2017 1:27 AM, Gary Johnson wrote: >>> On 2017-07-12, Bryan Dunphy wrote: I have a shell script, originally created for Mac OS X. that waits for an external drive to be mounte

Re: How to repeat a bash shell script until success

2017-07-14 Thread Sorin Adrian Savu
On Fri, Jul 14, 2017 at 4:06 PM, cyg Simple wrote: > > On 7/14/2017 1:27 AM, Gary Johnson wrote: > > On 2017-07-12, Bryan Dunphy wrote: > >> I have a shell script, originally created for Mac OS X. that waits > >> for an external drive to be mounted (by testing an “ls” of the > >> volume’s root dir

Re: How to repeat a bash shell script until success

2017-07-14 Thread Kaz Kylheku
On 14.07.2017 10:34, Brian Inglis wrote: On 2017-07-14 11:07, Kaz Kylheku wrote: while ! program args ... ; do sleep 1 done Has everyone forgotten there is also an until loop, supported by at least sh, dash, bash, [m]ksh: I've forgotten that at least twice. (I don't remember the ex

Re: How to repeat a bash shell script until success

2017-07-14 Thread Brian Inglis
On 2017-07-14 11:07, Kaz Kylheku wrote: > On 12.07.2017 08:35, Bryan Dunphy wrote: >> I have a shell script, originally created for Mac OS X. that waits for >> an external drive to be mounted (by testing an “ls” of the volume’s >> root directory for success) then runs an “rsync” >> command. How do

Re: How to repeat a bash shell script until success

2017-07-14 Thread Kaz Kylheku
On 12.07.2017 08:35, Bryan Dunphy wrote: I have a shell script, originally created for Mac OS X. that waits for an external drive to be mounted (by testing an “ls” of the volume’s root directory for success) then runs an “rsync” command. How do I get the script to be run repeatedly until success

Re: How to repeat a bash shell script until success

2017-07-14 Thread cyg Simple
On 7/14/2017 1:27 AM, Gary Johnson wrote: > On 2017-07-12, Bryan Dunphy wrote: >> I have a shell script, originally created for Mac OS X. that waits >> for an external drive to be mounted (by testing an “ls” of the >> volume’s root directory for success) then runs an “rsync” command. >> How do I ge

Re: How to repeat a bash shell script until success

2017-07-13 Thread Gary Johnson
On 2017-07-12, Bryan Dunphy wrote: > I have a shell script, originally created for Mac OS X. that waits > for an external drive to be mounted (by testing an “ls” of the > volume’s root directory for success) then runs an “rsync” command. > How do I get the script to be run repeatedly until successf

Re: How to repeat a bash shell script until success

2017-07-13 Thread Brian Inglis
On 2017-07-12 09:35, Bryan Dunphy wrote: > I have a shell script, originally created for Mac OS X. that waits for an > external drive to be mounted (by testing an “ls” of the volume’s root > directory for success) then runs an “rsync” command. How do I get the script > to be run repeatedly until

How to repeat a bash shell script until success

2017-07-13 Thread Bryan Dunphy
I have a shell script, originally created for Mac OS X. that waits for an external drive to be mounted (by testing an “ls” of the volume’s root directory for success) then runs an “rsync” command. How do I get the script to be run repeatedly until successful exit under Cygwin? Here is the unmo