#!/bin/bash # Link ssh-disown to a hostname. I.e. # ln -s ssh-disown ubit HOST=$(basename $0) CMD="$*" [ -z "$CMD" ] && echo "usage: $0 " && exit # The 2 ampersands and disowns are for emacsclient on the target and # for ssh (for X tunneling) on the host. # Some things do not seem to be synchronous, so keep connection going # for a bit.. SLEEP_HACK=1 ssh ubit "$* & sleep $SLEEP_HACK ; disown" & sleep $SLEEP_HACK ; disown