This repository was archived by the owner on Sep 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,16 +6,21 @@ An example usage would be to execute system shutdown on the SBC when a e.g. `M77
66
77# Usage
88```
9- $ ./execonmcode -- help
9+ $ ./execonmcode -help
1010Usage of ./execonmcode:
11- -command string
11+ -command value
1212 Command to execute
13- -mCode int
14- Code that will initiate execution of the command (default 7722)
13+ -debug
14+ Print debug output
15+ -mCode value
16+ Code that will initiate execution of the command
1517 -socketPath string
16- Path to socket (default "/var/run/duet .sock")
18+ Path to socket (default "/var/run/dsf/dcs .sock")
1719```
1820
21+ Starting from version 3 it is possible to provide an arbitrary number of ` -mCode ` + ` -command ` tuples. This way a
22+ single instance of ` execonmcode ` can handle multiple commands. Side-effect is that there is no more default for ` -mCode ` .
23+
1924## Parameters
2025` execonmcode ` does provide a simple mechanism for parameter substitution. It is possible to pass string parameters to the
2126selected ` M-Code ` and have them inserted in the ` -command ` . In the command string they have to be single letters prefixed by
You can’t perform that action at this time.
0 commit comments