Index: /trunk/BNC/bncrinex.cpp
===================================================================
--- /trunk/BNC/bncrinex.cpp	(revision 435)
+++ /trunk/BNC/bncrinex.cpp	(revision 436)
@@ -508,6 +508,12 @@
 ////////////////////////////////////////////////////////////////////////////
 void bncRinex::closeFile() {
+  QMutexLocker locker(&_mutex);
   _out.close();
   if (!_rnxScriptName.isEmpty()) {
+
+    cout << "BEG " 
+         << QTime::currentTime().toString("hh:mm:ss.zzz ").toAscii().data()
+         << _statID.data() << endl;
+
 #ifdef WIN32
     QProcess::startDetached(_rnxScriptName, QStringList() << _fName) ;
@@ -515,4 +521,9 @@
     QProcess::startDetached("sh", QStringList() << _rnxScriptName << _fName) ;
 #endif
-  }
-}
+
+    cout << "END " 
+         << QTime::currentTime().toString("hh:mm:ss.zzz ").toAscii().data()
+         << _statID.data() << endl;
+
+  }
+}
Index: /trunk/BNC/bncrinex.h
===================================================================
--- /trunk/BNC/bncrinex.h	(revision 435)
+++ /trunk/BNC/bncrinex.h	(revision 436)
@@ -71,4 +71,5 @@
    bool                _reconnectFlag;
    QDate               _skeletonDate;
+   QMutex              _mutex;
 };
 
