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