Originally Posted by konsolebox
The script's only meant to run with bash. If sh.exe is your default shell, that might give a difference with operations.
well I am running it within bash
c:\cygwin\bin\bash.exe /cygdrive/c/scripts/singlei.sh $1 $2 $3 $4
but have noticed that sometimes it says
error in program=C:\cygwin\bin\sh.exe
error in program=C:\cygwin\bin\bash.exe
have sh.exe stackdumps in some folders and bash.exe stackdumps in other folders so I guess it is some cygwin behaviour
I still haven't really narrowed down what exactly leads to it 'locking it'
but a friend left me a note saying a number of blank (as they appear when queued anyway) bash windows had opened up and all of them were using some cpu and 7 lock files were in the folder - he said he left them open - but they were closed and only 1 lock file in the folder when I logged on so they must have exited at some point
though it seems that closing one of the windows causes them all to close and things to start working again when the script is run again