#!/bin/sh #open email tunnels from specified ESP shore stations or all echo "Closing any existing ESP email tunnels" killall -gw forwardMail 2>/dev/null case "$1" in close|stop|none) exit ;; "") set sunsetbeach socal ;; esac : ${upload_top:=`echo ~ftp`} for station; do logfn=$upload_top/$USER/$station-tunnelESPmail.out echo "Opening e-mail tunnel from $station -- see $logfn" start forwardMail root@$station >$logfn done