[cig-commits] r5687 - mc/3D/CitcomS/trunk/visual

tan2 at geodynamics.org tan2 at geodynamics.org
Fri Jan 5 14:33:03 PST 2007


Author: tan2
Date: 2007-01-05 14:33:03 -0800 (Fri, 05 Jan 2007)
New Revision: 5687

Modified:
   mc/3D/CitcomS/trunk/visual/batchpaste.sh
Log:
Fix for issue73 "problems with autocombine.py in single workstation mode"

$HOSTNAME is not defined in the non-interactive shell in Ubuntu 6.10. Need
to put a quote around it.


Modified: mc/3D/CitcomS/trunk/visual/batchpaste.sh
===================================================================
--- mc/3D/CitcomS/trunk/visual/batchpaste.sh	2007-01-05 21:50:11 UTC (rev 5686)
+++ mc/3D/CitcomS/trunk/visual/batchpaste.sh	2007-01-05 22:33:03 UTC (rev 5687)
@@ -45,7 +45,7 @@
 while [ x"$4" != "x" ]
 do
     cmd_paste="$paste_exe $datadir $datafile $rank $timestep $cwd"
-    if [ $4 = $HOSTNAME -o  $4 = "localhost" ]; then
+    if [ x"$4" = x"$HOSTNAME" -o  $4 = "localhost" ]; then
 	$cmd_paste
     else
         rsh $4 "$cmd_paste"



More information about the cig-commits mailing list