#!/bin/sh # This part runs on local machine, usually from a GNOME or KDE menu. if [ \! -f /usr/bin/xclip ]; then echo "blitz-to: No xclip" >&2 exit 1 fi if [ "$#" != 1 ]; then echo "Usage: blitz-to hostname" >&2 exit 1 fi # This echo appears in the empty terminal window. echo Blitzing... /usr/bin/xclip -selection clipboard -o | ssh "$1" blitz