Ignore:
Timestamp:
06/16/11 21:26:48 (13 years ago)
Author:
tbretz
Message:
Added the --exec command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fscctrl.cc

    r11034 r11043  
    516516    // boost::thread t(boost::bind(&StateMachineFSC<S>::Run, &io_service));
    517517
     518    if (conf.Has("exec"))
     519    {
     520        const vector<string> v = conf.Get<vector<string>>("exec");
     521        for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++)
     522            shell.Execute(*it);
     523    }
     524
    518525    shell.Run();                 // Run the shell
    519526    io_service.Stop();           // Signal Loop-thread to stop
     
    538545        ("no-dim,d",  po_bool(),      "Disable dim services")
    539546        ("console,c", var<int>(),     "Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
     547        ("exec,e",    vars<string>(), "Execute one or more scrips at startup")
    540548        ;
    541549
Note: See TracChangeset for help on using the changeset viewer.