#!/bin/sh in=/var/tmp/r.in out=/var/tmp/r.out mkfifo $in $out #trap "rm $in $out" EXIT <$in 2>&1 >$out ssh "$@"