From 5fa42b5216273158660028e20cb4f8fb52d6e83f Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Fri, 30 Apr 2010 08:02:40 +0000 Subject: [PATCH] set max number of loops to wait for file git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@13779 ee4ac58c-ac51-4696-9907-e4b3aa274f04 --- etc/run_tblastx.sanger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/run_tblastx.sanger b/etc/run_tblastx.sanger index 32b5b26d7..ab69ee8d4 100755 --- a/etc/run_tblastx.sanger +++ b/etc/run_tblastx.sanger @@ -97,7 +97,7 @@ run_one_prog () { # Artemis can read compressed files - while [ ! -f $OUTPUT_FILE ]; do sleep 2; done + count=0; while (test ! -f $OUTPUT_FILE) && (test $count -lt 1000) ; do sleep 2; count+=1; done if [ -s ${PROG}_errors.new ] then -- GitLab