@b0rk if for some reason you don’t have rlwrap, socat can also do this (with READLINE on the “left” and EXEC on the right), even supporting a custom history file.