Changeset 15021 for trunk/FACT++/src


Ignore:
Timestamp:
03/10/13 16:35:07 (12 years ago)
Author:
tbretz
Message:
Added --restart to the dimctrl which avoids the need to know the magic number which makes start.sh restart the program.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r15018 r15021  
    582582        return !Dim::SendCommand("CHAT/MSG", fUser+": "+conf.Get<string>("msg"));
    583583
     584    if (conf.Has("restart"))
     585        return !Dim::SendCommand(conf.Get<string>("restart")+"/EXIT", uint32_t(126));
     586
    584587    return -1;
    585588}
  • trunk/FACT++/src/dimctrl.cc

    r15002 r15021  
    2525        ("batch",        var<string>(),   "Start a batch script with the given name at the given label (script.dim[:N]) on the dimctrl-server")
    2626        ("stop",         po_switch(),     "Stop a currently running script on the dimctrl-server")
     27        ("restart",      var<string>(),   "Send 'EXIT 126' to the given server")
    2728        ("msg",          var<string>(),   "Send a message to the chat server.")
    2829        ("user,u",       var<string>(""), "A user name - just for logging purposes (default is ${USER})")
Note: See TracChangeset for help on using the changeset viewer.