Skip to content

Commit 6fcf614

Browse files
committed
Fix invalid shebang
As @TomyLobo pointed out the shebang in the README is not correct. Fix the description.
1 parent d8887bb commit 6fcf614

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,27 @@ EOS
6464
```
6565

6666
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
67+
used as a script interpreter. Just pass it the script file through stdin:
7168

69+
```shell
70+
$ cat somescript.txt
71+
# This is a comment
7272
status
73+
74+
# and this too!
7375
sm plugins list
7476

7577
cvarlist
7678
```
7779

80+
And execute your script like this:
81+
82+
```shell
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+
7888
## Exit Code
7989

8090
The command exit with 0 on success, and some arbitrary non-zero exit code on

0 commit comments

Comments
 (0)