Index: trunk/FACT++/src/Readline.cc
===================================================================
--- trunk/FACT++/src/Readline.cc	(revision 10975)
+++ trunk/FACT++/src/Readline.cc	(revision 10976)
@@ -114,4 +114,6 @@
     if (read_history(fName.c_str()))
         cout << "WARNING - Reading " << fName << ": " << strerror(errno) << endl;
+
+    fCommandLog.open(string(prgname)+".evt");
 
     // Setup the readline callback which are needed to redirect
@@ -943,4 +945,6 @@
 bool Readline::Process(const string &str)
 {
+    fCommandLog << str << endl;
+
     if (str.substr(0, 3)==".w ")
     {
@@ -1111,7 +1115,11 @@
     int rc = 0;
 
-    ifstream fin(Tools::Trim(fname).c_str());
+    const string name = Tools::Trim(fname);
+
+    ifstream fin(name.c_str());
     if (!fin)
         return -1;
+
+    fCommandLog << "# START executing: " << name << endl;
 
     string buffer;
@@ -1126,5 +1134,5 @@
 
         rc++;
-
+        // FIXME: Write command log
         if (Process(buffer))
             continue;
@@ -1134,4 +1142,6 @@
         AddToHistory(buffer);
     }
+
+    fCommandLog << "# FINISHED executing: " << name << endl;
 
     return rc;
Index: trunk/FACT++/src/Readline.h
===================================================================
--- trunk/FACT++/src/Readline.h	(revision 10975)
+++ trunk/FACT++/src/Readline.h	(revision 10976)
@@ -4,4 +4,5 @@
 #include <string>
 #include <vector>
+#include <fstream>
 
 class Readline
@@ -19,4 +20,6 @@
     std::string fName;     /// Filename for the history file compiled in the constructor
     int fMaxLines;         /// Maximum number of lines in the history file
+
+    std::ofstream fCommandLog;
 
     std::string fLastLine; /// Last line adde to history
