-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrcon.man
77 lines (74 loc) · 2.11 KB
/
rcon.man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.\" Manpage for rcon.
.TH man 1 "April 15 2021" "1.1" "rcon man page"
.SH NAME
rcon \- Execute rcon commands
.SH SYNOPSIS
rcon <\fB-f\fR "filename.ini"> [\fB-a\fR IPNumber] [\fB-p\fR Port] <command>
.SH DESCRIPTION
Linux command line utility to send rcon commands.
.TP
Any command line parameter will override the INI file.
.SH OPTIONS
.TP
\fB\-f \-a \-p\fR and \fBcommand\fR are all necessary. However, only \fB\-f\fR and \fBcommand\fR are required as command-line arguments. If address and port are in the file, it is not required to pass them as arguments.
.TP
\fB\-?\fR Shows the usage syntax and quits.
.TP
\fB\-v\fR Enables verbose mode which means more detailed messages.
.TP
\fB\-f "filename.ini"\fR Location to .ini file containing at least the password.
.TP
\fB\-a IPNumber\fR IP Address of the rcon server. This option is not needed if added to the .ini file.
.TP
\fB\-p Port\fR Port on the rcon server. This option is not needed if added to the .ini file.
.TP
\fBcommand\fR rcon command to send to the rcon server.
.SH FILE FORMAT
[rcon]
.br
password=\fBYOUR_RCON_PASSWORD\fR
.br
ipaddress=\fB127.0.0.1\fR
.br
port=\fB27015\fR
.SH EXAMPLES
Run a DoExit command:
rcon \-f "/etc/rcon.ini" \-a 127.0.0.1 \-p 27015 "DoExit"
Run a DoExit command and use the address and port defined in ini file:
rcon \-f "/etc/rcon.ini" "DoExit"
Run a Broadcast message command using an island-instance ini file:
rcon \-f "/etc/rcon-island.ini" "Broadcast About to save the world!"
Run a SaveWorld command using a ragnarok-instance ini file:
rcon \-f "/etc/rcon-ragnarok.ini" "SaveWorld"
.SH EXIT CODES
\fB0\fR = Good
.br
\fB1\fR = Unknown option
.br
\fB2\fR = Missing file parameter
.br
\fB3\fR = Missing command parameter
.br
\fB4\fR = Missing address parameter/config
.br
\fB5\fR = Missing port parameter/config
.br
\fB6\fR = Invalid file or format
.br
\fB7\fR = Connect failed
.br
\fB8\fR = Error sending password
.br
\fB9\fR = Could not authenticate
.br
\fB10\fR = Command send error
.SH SEE ALSO
<https://www.ryanschulze.net/archives/1052>
.SH BUGS
No known bugs.
.SH AUTHOR
Version 1.0 - [ASY]Zyrain
.br
Version 1.1 - LHammonds
.br
Man pages - LHammonds