From 338000bbb6e6646de567495fcd523b850d76c3f0 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 6 Jul 2013 21:32:41 -0400 Subject: [PATCH] fixed sleep behavior to not sleep when the process is the last one we'd run, namely the OpenSim.exe process. --- scripts/opensim/opensim_utils.sh | 5 ++++- scripts/opensim/run_osgrid.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/opensim/opensim_utils.sh b/scripts/opensim/opensim_utils.sh index 9405ba6f..3985411f 100644 --- a/scripts/opensim/opensim_utils.sh +++ b/scripts/opensim/opensim_utils.sh @@ -40,7 +40,10 @@ function launch_screen() ##why? --debug #-console=basic echo "$(date_stringer ' '): $screen_name started." - sleep $SNOOZE_TIME + # only sleep if we are not at the last process that gets started. + if [ "$app_name" != "OpenSim.exe" ]; then + sleep $SNOOZE_TIME + fi } # finds the opensim process specified or returns a blank string in the diff --git a/scripts/opensim/run_osgrid.sh b/scripts/opensim/run_osgrid.sh index 52a38b87..2d1d7752 100644 --- a/scripts/opensim/run_osgrid.sh +++ b/scripts/opensim/run_osgrid.sh @@ -7,7 +7,7 @@ source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh # jump into the opensim binaries directory so we can run stuff. pushd $HOME/opensim/bin &>/dev/null -launch_screen OpenSim OpenSim.exe +launch_screen opensim OpenSim.exe popd &>/dev/null -- 2.34.1