#!/bin/bash HOST=127.0.0.1 PORT=31337 set -eu set -o pipefail if [ $# -eq 0 ]; then echo "Usage: $0 ..." exit fi echo "$*" | nc -w3 "$HOST" "$PORT"