#!/bin/sh # ~jhs/bin/.sh/xterms # if [ "`basename $0`" = "xconsoles" ]; then # next=xconsolev # else # }{ # next=xtermv # fi # } case `basename $0` in #{ "xterms") #{ hosts=`hosts` command=xtermv ;; "xconsoles") #{ hosts=`hosts` command=xconsolev ;; "xpingscoax") #{ hosts="axis erik film flip king lapa lapd mini rain scan snow test" # For physical order see ~/bin/.csh/host2coax command=xpingvcoax ;; "xpingsall") #{ hosts="axis `hosts`" command=xpingvall ;; *) echo "$0 Not a recognised name" ;; esac # } for i in $hosts ; do $command $i done case `basename $0` in #{ "xterms") #{ ;; "xconsoles") #{ ;; "xpingscoax") #{ # Pull up an editor to review physical order # while debugging cable. vi ~/bin/.csh/host2coax ;; "xpingsall") #{ ;; *) echo "$0 Not a recognised name" ;; esac # }