3 # .../on-vc.sh VC USERNAME SCRIPT
4 # must be invoked by full path to relevant directory
6 # ttyVC is the relevant tty
7 # it should be owned by USERNAME
8 # ./SCRIPT is the startup script (`repeatedly.sh', `startup.sh', etc.)
9 # (in the directory whose fullpathname we're invoked with)
13 fail
() { echo 2>&1 "$0: $1"; exit 1; }
15 test $# = 3 || fail
"usage: $0 VC USERNAME SCRIPT"
21 test -L .tclshrc || fail
"no .tclshrc symlink"
22 test -x
"./$script" || fail
"script not executable"
24 really
-u
"$username" \
25 openvt
-f
-c
"$vc" -w
-- \