#!/bin/bash # [ -z "$2" ] && exec x-terminal-emulator \ # -display :0 \ # -geometry 120x1+0+0 \ # -e $0 "$1" dummy # echo -n uploading "$1" # scp "$1" torrent@zwizwa.i:spool/ # sleep 10 # bash sucks, i can't get the quoting right above #SPOOL=torrent@zwizwa.i:spool/ SPOOL=jan@beiteltje:torrents/ # this is simpler if scp "$1" $SPOOL 2>&1; then xmessage -timeout 1 "DONE: $1" else xmessage "ERROR: $1" fi