#!/bin/bash set -o pipefail if [ "$1" ];then derp="$USER action $1" fi cat <(echo $derp) /dev/stdin | socat tcp-connect:127.0.0.1:1337,null-eof stdio