We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8887bb commit 6fcf614Copy full SHA for 6fcf614
README.md
@@ -64,17 +64,27 @@ EOS
64
```
65
66
In this mode lines starting with ```#``` are ignored. This allows rcon to be
67
-used as a script interpreter:
68
-
69
-```
70
-#!/usr/bin/rcon -H somehost -p someport -P somepass
+used as a script interpreter. Just pass it the script file through stdin:
71
+```shell
+$ cat somescript.txt
+# This is a comment
72
status
73
+
74
+# and this too!
75
sm plugins list
76
77
cvarlist
78
79
80
+And execute your script like this:
81
82
83
+$ rcon -H somehost -p someport -P somepass < somescript.txt
84
+# Or:
85
+$ cat somescript.txt | rcon -H somehost -p someport -P somepass
86
+```
87
88
## Exit Code
89
90
The command exit with 0 on success, and some arbitrary non-zero exit code on
0 commit comments