#!/bin/bash xterm -e logout& export DISPLAY=localhost:0 /usr/local/bin/cssh $* & osascript << END tell application "X11" activate end tell END