Changeset 11043 for trunk/FACT++/src
- Timestamp:
- 06/16/11 21:26:48 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r10997 r11043 932 932 // boost::thread t(boost::bind(&StateMachineDrive<S>::Run, &io_service)); 933 933 934 if (conf.Has("exec")) 935 { 936 const vector<string> v = conf.Get<vector<string>>("exec"); 937 for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++) 938 shell.Execute(*it); 939 } 940 934 941 shell.Run(); // Run the shell 935 942 io_service.Stop(); // Signal Loop-thread to stop … … 954 961 ("no-dim,d", po_switch(), "Disable dim services") 955 962 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 963 ("exec,e", vars<strings>(),"Execute one or more scrips at startup") 956 964 ; 957 965 -
trunk/FACT++/src/fadctrl.cc
r11032 r11043 1463 1463 //boost::thread t(boost::bind(&StateMachineFAD<S>::Run, &io_service)); 1464 1464 1465 if (conf.Has("exec")) 1466 { 1467 const vector<string> v = conf.Get<vector<string>>("exec"); 1468 for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++) 1469 shell.Execute(*it); 1470 } 1471 1465 1472 shell.Run(); // Run the shell 1466 1473 io_service.Stop(); // Signal Loop-thread to stop … … 1484 1491 ("no-dim,d", po_switch(), "Disable dim services") 1485 1492 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 1493 ("exec,e", vars<string>(), "Execute one or more scrips at startup") 1486 1494 ; 1487 1495 -
trunk/FACT++/src/fscctrl.cc
r11034 r11043 516 516 // boost::thread t(boost::bind(&StateMachineFSC<S>::Run, &io_service)); 517 517 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 518 525 shell.Run(); // Run the shell 519 526 io_service.Stop(); // Signal Loop-thread to stop … … 538 545 ("no-dim,d", po_bool(), "Disable dim services") 539 546 ("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") 540 548 ; 541 549 -
trunk/FACT++/src/ftmctrl.cc
r10997 r11043 1844 1844 // boost::thread t(boost::bind(&StateMachineFTM<S>::Run, &io_service)); 1845 1845 1846 if (conf.Has("exec")) 1847 { 1848 const vector<string> v = conf.Get<vector<string>>("exec"); 1849 for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++) 1850 shell.Execute(*it); 1851 } 1852 1846 1853 shell.Run(); // Run the shell 1847 1854 io_service.Stop(); // Signal Loop-thread to stop … … 1866 1873 ("no-dim,d", po_bool(), "Disable dim services") 1867 1874 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 1875 ("exec,e", vars<string>(), "Execute one or more scrips at startup") 1868 1876 ; 1869 1877 -
trunk/FACT++/src/scheduler.cc
r11030 r11043 783 783 784 784 //io_service.SetReady(); 785 if (conf.Has("exec")) 786 { 787 const vector<string> v = conf.Get<vector<string>>("exec"); 788 for (vector<string>::const_iterator it=v.begin(); it!=v.end(); it++) 789 shell.Execute(*it); 790 } 785 791 786 792 shell.Run(); // Run the shell … … 804 810 po::options_description config("Configuration"); 805 811 config.add_options() 806 ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)") 807 ("log,l", var<string>(n), "Write log-file") 808 ("no-dim,d", po_switch(), "Disable dim services") 809 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 812 ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)") 813 ("log,l", var<string>(n), "Write log-file") 814 ("no-dim,d", po_switch(), "Disable dim services") 815 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 816 ("exec,e", vars<string>(), "Execute one or more scrips at startup"); 817 818 po::options_description control("Scheduler options"); 819 control.add_options() 810 820 ("schedule-database", var<string>() 811 821 #if BOOST_VERSION >= 104200 … … 836 846 conf.AddEnv("dns", "DIM_DNS_NODE"); 837 847 conf.AddOptions(config); 848 conf.AddOptions(control); 838 849 conf.SetArgumentPositions(p); 839 850 }
Note:
See TracChangeset
for help on using the changeset viewer.