Bash version of remotecat