From 5c8da3de9d30123425a37bdfc227af9c62cf9a26 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Wed, 22 Jun 2011 10:33:44 +0200 Subject: [PATCH] Copy pasted common.sh code --- scripts/create_midP_masks.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/create_midP_masks.sh b/scripts/create_midP_masks.sh index e5894a4..8e4af7a 100755 --- a/scripts/create_midP_masks.sh +++ b/scripts/create_midP_masks.sh @@ -1,7 +1,14 @@ #! /bin/bash -x -# imports -. common.sh +MAX_THREADS=2 + +check_threads() +{ + while [[ $(jobs -p | wc -l) -ge $1 ]]; do + jobs + sleep 10 + done +} extract_patient() { -- 2.47.1