9 nil
) echo >&2 "usage: $0 HOST:RDPY/LDPY PROG ARGS ..."; exit 2 ;;
11 host=${1%:*} dpy
=${1##*:}; rdpy
=${dpy%%/*} ldpy
=${dpy#*/}; shift 1
13 ssh -L
"/tmp/.X11-unix/X$ldpy:/tmp/.X11-unix/X$rdpy" -Nafx
"$host"
15 trap 'trap - INT QUIT HUP EXIT; ssh -Oexit "$host"; rm -f "/tmp/.X11-unix/X$ldpy"' INT QUIT HUP EXIT