fixed sleep behavior to not sleep when the process is the last one we'd run,
authorChris Koeritz <fred@gruntose.com>
Sun, 7 Jul 2013 01:32:41 +0000 (21:32 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 7 Jul 2013 01:32:41 +0000 (21:32 -0400)
namely the OpenSim.exe process.

scripts/opensim/opensim_utils.sh
scripts/opensim/run_osgrid.sh

index 9405ba6fca8f3d24b5bf25284678413da002170a..3985411f1c34c5192e7242924c886a2d8f8a779c 100644 (file)
@@ -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
index 52a38b87af6ea9cbc26471c262c3372d4c5561e5..2d1d7752f43a25ac53d696e47d22eb5ca1096954 100644 (file)
@@ -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