added pbs protection to keep scripts from running.
authorChris Koeritz <fred@gruntose.com>
Thu, 2 Feb 2012 23:54:43 +0000 (18:54 -0500)
committerChris Koeritz <fred@gruntose.com>
Thu, 2 Feb 2012 23:54:43 +0000 (18:54 -0500)
scripts/examples/feisty_meow_startup/bashrc_user
scripts/examples/feisty_meow_startup/bashrc_user_windoz

index 1877a58ef4ea0668f4fff6370543a29188795f61..6c2b67f9ec1b78815a3465a64b9e42d03e9f0f10 100644 (file)
@@ -11,8 +11,9 @@
 #   export NAME='Doodmodeus Q. Nornberton'
 
 # don't bother running our stuff for a dumb terminal since any echo
-# can mess with an sftp connection, apparently.
-if [ ${TERM} != "dumb" ]; then
+# can mess with an sftp or scp connection, apparently.  similarly, we
+# don't want any automatic startup stuff if we are running under PBS.
+if [ "${TERM}" != "dumb" -a -z "$PBS_ENVIRONMENT" ]; then
   # sets up the feisty_meow scripts, using the default locations for all scripts.
   source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh
 fi
index f2c32ddb0519bd25c89dec98ca6cb93c2536fd17..46dce184e22968ccedda848bb6c93cdec2f308e0 100644 (file)
@@ -15,9 +15,8 @@
 # add in some useful paths for the local machine.
 export PATH=/bin:$PATH:/c/utilities/emacs-23.2/bin:/c/tools/cvsnt:/c/utilities/Vim/vim71:/c/system/Perl/site/bin:/c/system/Perl/bin:/c/tools/doxygen/bin:/c/tools/graphviz/Graphviz/bin
 
-#export FEISTY_MEOW_DIR="$HOME/feisty_meow"
-
-# sets up the feisty_meow scripts, using the default locations for all scripts.
-source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh
+if [ "${TERM}" != "dumb" -a -z "$PBS_ENVIRONMENT" ]; then
+  source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh
+fi