Index: trunk/BNC/rinex/bncpostprocess.cpp
===================================================================
--- trunk/BNC/rinex/bncpostprocess.cpp	(revision 3972)
+++ trunk/BNC/rinex/bncpostprocess.cpp	(revision 3973)
@@ -206,5 +206,11 @@
   }
 
-  emit finished();
-  deleteLater();
-}
+  bncApp* app = (bncApp*) qApp;
+  if ( app->mode() != bncApp::interactive) {
+    app->exit(0);
+  }
+  else {
+    emit finished();
+    deleteLater();
+  }
+}
Index: trunk/BNC/rinex/reqcanalyze.cpp
===================================================================
--- trunk/BNC/rinex/reqcanalyze.cpp	(revision 3972)
+++ trunk/BNC/rinex/reqcanalyze.cpp	(revision 3973)
@@ -41,4 +41,5 @@
 #include <iostream>
 #include "reqcanalyze.h"
+#include "bncapp.h"
 #include "bncsettings.h"
 
@@ -63,5 +64,11 @@
   cout << "Reqc Analyze Running ..." << endl;
 
-  emit finished();
-  deleteLater();
+  bncApp* app = (bncApp*) qApp;
+  if ( app->mode() != bncApp::interactive) {
+    app->exit(0);
+  }
+  else {
+    emit finished();
+    deleteLater();
+  }
 }
