Index: /trunk/FACT++/src/dimctrl.cc
===================================================================
--- /trunk/FACT++/src/dimctrl.cc	(revision 11051)
+++ /trunk/FACT++/src/dimctrl.cc	(revision 11052)
@@ -22,4 +22,11 @@
             win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl;
 
+    if (conf.Has("exec"))
+    {
+        const vector<string> v = conf.Get<vector<string>>("exec");
+        for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++)
+            shell.Execute(*it);
+    }
+
     shell.Run();
 }
@@ -36,4 +43,5 @@
         ("log,l",     var<string>(n), "Write log-file")
         ("console,c", var<int>(),     "Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
+        ("exec,e",    vars<string>(), "Execute one or more scrips at startup")
         ;
 
@@ -58,6 +66,6 @@
         "easily access all of their commands.\n"
         "\n"
-        "Usage: test3 [-c type] [OPTIONS]\n"
-        "  or:  test3 [OPTIONS]\n";
+        "Usage: dimctrl [-c type] [OPTIONS]\n"
+        "  or:  dimctrl [OPTIONS]\n";
     cout << endl;
 
