Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8380)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8400)
@@ -133,6 +133,12 @@
 function finish()
 {
-   rm -v $todofile
-   rm -v $lockfile
+   if ls $todofile >/dev/null 2>&1
+   then 
+      rm -v $todofile
+   fi
+   if ls $lockfile >/dev/null 2>&1
+   then 
+      rm -v $lockfile
+   fi
    date
    printprocesslog "INFO finished $0"
