All Projects → n0la → rcon

n0la / rcon

Licence: BSD-2-Clause license
Source RCON client for command line

Programming Languages

c
50402 projects - #5 most used programming language
CMake
9771 projects
Roff
2310 projects
shell
77523 projects

Projects that are alternatives of or similar to rcon

rkon-core
Source RCON Protocol Java library
Stars: ✭ 62 (-44.14%)
Mutual labels:  rcon, source-engine
Fragsurf-2
Fragsurf is an actively developed standalone game based on HL2 surf and bhop movement mechanics.
Stars: ✭ 68 (-38.74%)
Mutual labels:  source-engine
PHP-Vanilla-Buycraft
A basic "BuyCraft" implementation written in PHP for pure vanilla Minecraft servers.
Stars: ✭ 17 (-84.68%)
Mutual labels:  rcon
AdminTools
AdminTools for minecraft - rcon and status for mc server and mojang api-s
Stars: ✭ 18 (-83.78%)
Mutual labels:  rcon
csgo-rcon-nodejs
A web panel to control a CS:GO server
Stars: ✭ 46 (-58.56%)
Mutual labels:  rcon
minecraft-backup
Backup script for Minecraft servers on Linux. Supports screen, tmux, and RCON connections. Supports tar and restic backup format.
Stars: ✭ 140 (+26.13%)
Mutual labels:  rcon
spunkybot
Multi-platform administration and RCON tool for Urban Terror
Stars: ✭ 19 (-82.88%)
Mutual labels:  rcon
Unity-Source-Tools
Plugin to import resources from the Source engine in Unity3D.
Stars: ✭ 102 (-8.11%)
Mutual labels:  source-engine
VJ-Base
An addon for Garry's mod that contains bunch of bases to make many different types of addons.
Stars: ✭ 57 (-48.65%)
Mutual labels:  source-engine
Minecraft-Server-Status
✅一个用于显示服务器在线信息及其他内容的网站
Stars: ✭ 22 (-80.18%)
Mutual labels:  rcon
icecon
Simple and quick to use RCON tool for IW4M and other Q3-compatible game servers.
Stars: ✭ 32 (-71.17%)
Mutual labels:  rcon
UE4-DedicatedServer
A UE4 plugin which adds proper console support (input) and RCon
Stars: ✭ 40 (-63.96%)
Mutual labels:  rcon
lgsl
LGSL v6.2.0 for PHP 5.4-8.2.0dev (Live Game Server List): online status for Discord, FiveM, Rust, CS, SA:MP, GMOD, Minecraft, Source Query, etc.
Stars: ✭ 101 (-9.01%)
Mutual labels:  source-engine
source-engine-model-loader
Three.js loader for parsing Valve's Source Engine models
Stars: ✭ 54 (-51.35%)
Mutual labels:  source-engine
mctools
Minecraft Connection Tools - Python implementations of common Minecraft protocols.
Stars: ✭ 27 (-75.68%)
Mutual labels:  rcon
rconsharp
rconsharp is a Valve RCON protocol implementation written in C# targeting netstandard 2.1
Stars: ✭ 43 (-61.26%)
Mutual labels:  rcon
docker-rcon-web-admin
A Docker image that runs rcon-web-admin
Stars: ✭ 34 (-69.37%)
Mutual labels:  rcon
ShaderCompile
Standalone shadercompile, that doesn't depend on valve libraries and supports x64
Stars: ✭ 33 (-70.27%)
Mutual labels:  source-engine
bsp
Go package for parsing Valve's Source Engine .bsp (Binary Space Partition) map files
Stars: ✭ 29 (-73.87%)
Mutual labels:  source-engine
aio-mc-rcon
An asynchronous RCON client/wrapper for Minecraft Java Edition
Stars: ✭ 30 (-72.97%)
Mutual labels:  rcon

rcon is a command line application that can be used as a Source RCON client. It will send commands to the given server, and print the reply to stdout.

Installation

Packaging status

Homebrew

@Holek has made a homebrew tap for rcon, which you can use like this:

$ brew install Holek/rcon/rcon

Manual Installation

You require libbsd, check, cmake and glib-2.0 to successfully build rcon. You have to install those from your distribution's repository. For example:

  • In Debian you'd do something like this:
$ apt-get install build-essential cmake check libbsd-dev libglib2.0-dev
  • In Fedora you'd do something like this:
$ dnf install @c-development cmake check-devel libbsd-devel glib2-devel

Then build the project:

$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ make
$ sudo make install

A bash-completion script is available, but not installed by default. If you use bash completion simply specify INSTALL_BASH_COMPLETION=ON on the cmake command line:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_BASH_COMPLETION=ON

Debian package

If you prefer to build a Ubuntu/Debian package out of the source code: You can! Just run the following command in the source code:

$ dpkg-buildpackage -b -uc -us

You will need the dpkg-dev and debhelper packages of course, which contain dpkg-buildpackage, and all the dependencies as they are listed in the manual installation section above.

Documentation

The utility comes with a man page: rcon(1). View it with: man 1 rcon.

Usage

Command Line

The command can be called from the command line directly, like so:

$ rcon -H somehost -p someport -P somepass status

rcon automatically concats all your arguments together into one command:

$ rcon -H somehost -p someport -P somepass sm plugins list

This sends the command "sm plugins list" to the server.

Standard Input

If you wish to send more than one command to the server, don't specify one on the command line. Instead give rcon a list of commands through standard input:

$ rcon -H somehost -p someport -P somepass <<EOS
status
sm plugins list
# This might be long!
cvarlist
EOS

In this mode lines starting with # are ignored. This allows rcon to be used as a script interpreter. Just pass it the script file through stdin:

$ cat somescript.txt
# This is a comment
status

# and this too!
sm plugins list

cvarlist

And execute your script like this:

$ rcon -H somehost -p someport -P somepass < somescript.txt
# Or:
$ cat somescript.txt | rcon -H somehost -p someport -P somepass

Security Concerns

Please note that the RCON protocol is not encrypted, meaning that your passwords are transmitted in plain text to the server.

Exit Code

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

Config file

You can also store your server credentials in a configuration file. The default location for this file is $HOME/.rconrc. You can specify an alternate configuration file through the -c option. Entries from this configuration file are referenced through the -s option.

Here is an example configuration file:

[somehost]
hostname = 174.53.163.41
port = 27045
password = somepass
# remove the following line if the server
# is not minecraft, or set it to 'false'
minecraft = true

Now you can do:

$ rcon -s somehost status

Notable Forks

dad's variant is a fork of rcon that offers an ncurses interface. Perfect for running it in a local or remote shell.

See Also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].