Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit 60fa137

Browse files
committed
Update README
1 parent 967be88 commit 60fa137

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1010
Usage 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
2126
selected `M-Code` and have them inserted in the `-command`. In the command string they have to be single letters prefixed by

0 commit comments

Comments
 (0)