Index: trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher	(revision 7946)
+++ trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher	(revision 8461)
@@ -49,8 +49,9 @@
    fi
    echo " launching $i..." >> $scriptlog 2>&1
-   if ! pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor | grep cluster | cut -dr -f2`  2>$errorlog
+   pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor >> $errorlog | grep 'submitted to cluster' | cut -dr -f2`
+   if [ "$pid" = "" ]
    then 
-      echo "condor is not working " >> $errorlog 2>&1
-      printprocesslog "ERROR submitting $i to condor failed"
+      echo `date`" WARN condor is not working " >> $errorlog 2>&1
+      printprocesslog "WARN submitting $i to condor failed"
    fi
    if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog
