Index: trunk/BNC/bncrinex.cpp
===================================================================
--- trunk/BNC/bncrinex.cpp	(revision 131)
+++ trunk/BNC/bncrinex.cpp	(revision 132)
@@ -35,4 +35,8 @@
   _headerWritten = false;
   readSkeleton();
+
+  QSettings settings;
+  _rnxScriptName = settings.value("rnxScript").toString();
+  expandEnvVar(_rnxScriptName);
 }
 
@@ -89,12 +93,12 @@
   QDate nextDate;
 
-////  //// beg test
-////  if (1) {
-////    hlpStr = datTim.toString("_hh_mm_ss");
-////    nextDate = datTim.date();
-////    nextTime = datTim.time().addSecs(10);
-////  } else
-////  //// end test
-  if   (intStr == "15 min") {
+//  //// beg test
+//  if (1) {
+//    hlpStr = datTim.toString("_hh_mm_ss");
+//    nextDate = datTim.date();
+//    nextTime = datTim.time().addSecs(10);
+//  } else
+//  //// end test
+  if (intStr == "15 min") {
     char ch = 'A' + datTim.time().hour();
     hlpStr = ch;
@@ -298,3 +302,6 @@
 void bncRinex::closeFile() {
   _out.close();
-}
+  if (!_rnxScriptName.isEmpty()) {
+    _rnxScript.start(_rnxScriptName, QStringList() << _fName);
+  }
+}
Index: trunk/BNC/bncrinex.h
===================================================================
--- trunk/BNC/bncrinex.h	(revision 131)
+++ trunk/BNC/bncrinex.h	(revision 132)
@@ -3,4 +3,5 @@
 #define BNCRINEX_H
 
+#include <QProcess>
 #include <QByteArray>
 #include <QDateTime>
@@ -31,4 +32,6 @@
    bool                _headerWritten;
    QDateTime           _nextCloseEpoch;
+   QString             _rnxScriptName;
+   QProcess            _rnxScript;
 };
 
