#!/bin/sh # Send a command to the running FXServer console, e.g. rcon refresh if [ ! -p /run/fivem.stdin ]; then echo "server is not running (no console pipe)" >&2 exit 1 fi printf '%s\n' "$*" > /run/fivem.stdin