From: Chris Koeritz Date: Sun, 7 Jul 2013 01:32:41 +0000 (-0400) Subject: fixed sleep behavior to not sleep when the process is the last one we'd run, X-Git-Tag: 2.140.90~967 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=338000bbb6e6646de567495fcd523b850d76c3f0;p=feisty_meow.git fixed sleep behavior to not sleep when the process is the last one we'd run, namely the OpenSim.exe process. --- 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