socat

socat provides the ability to redirect input and outputs. See instructions and links below for quick references on installation for most operating systems.

How to install

Debian / Ubuntu Linux

sudo apt-get update && sudo apt-get install socat

Fedora, CentOS, RedHat

sudo yum install socat

Mac Homebrew

brew install socat

Windows

download

Next up: telnet