Changeset 11218 for trunk/FACT++/src/fscctrl.cc
- Timestamp:
- 06/29/11 23:08:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r11115 r11218 584 584 // boost::thread t(boost::bind(&StateMachineFSC<S>::Run, &io_service)); 585 585 586 if (conf.Has("cmd")) 587 { 588 const vector<string> v = conf.Get<vector<string>>("cmd"); 589 for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++) 590 shell.ProcessLine(*it); 591 } 592 586 593 if (conf.Has("exec")) 587 594 { … … 590 597 shell.Execute(*it); 591 598 } 599 600 if (conf.Get<bool>("quit")) 601 shell.Stop(); 592 602 593 603 shell.Run(); // Run the shell … … 613 623 ("no-dim,d", po_bool(), "Disable dim services") 614 624 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 625 ("cmd", vars<string>(), "Execute one or more commands at startup") 615 626 ("exec,e", vars<string>(), "Execute one or more scrips at startup") 627 ("quit,q", po_switch(), "Quit after startup"); 616 628 ; 617 629
Note:
See TracChangeset
for help on using the changeset viewer.