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

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wilriker committed Jan 6, 2020
1 parent 967be88 commit 60fa137
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Expand Up @@ -6,16 +6,21 @@ An example usage would be to execute system shutdown on the SBC when a e.g. `M77

# Usage
```
$ ./execonmcode --help
$ ./execonmcode -help
Usage of ./execonmcode:
-command string
-command value
Command to execute
-mCode int
Code that will initiate execution of the command (default 7722)
-debug
Print debug output
-mCode value
Code that will initiate execution of the command
-socketPath string
Path to socket (default "/var/run/duet.sock")
Path to socket (default "/var/run/dsf/dcs.sock")
```

Starting from version 3 it is possible to provide an arbitrary number of `-mCode` + `-command` tuples. This way a
single instance of `execonmcode` can handle multiple commands. Side-effect is that there is no more default for `-mCode`.

## Parameters
`execonmcode` does provide a simple mechanism for parameter substitution. It is possible to pass string parameters to the
selected `M-Code` and have them inserted in the `-command`. In the command string they have to be single letters prefixed by
Expand Down

0 comments on commit 60fa137

Please sign in to comment.