chiark
/
gitweb
/
~mdw
/
ircbot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d0f804
)
fix bogosity
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2002 23:29:06 +0000
(23:29 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2002 23:29:06 +0000
(23:29 +0000)
on-vc.sh
patch
|
blob
|
blame
|
history
diff --git
a/on-vc.sh
b/on-vc.sh
index a5e726a3461092b5755284a0c54ea5e683c44446..2761685e6cbea13b8899bda497ec47fe88ab4f60 100755
(executable)
--- a/
on-vc.sh
+++ b/
on-vc.sh
@@
-1,10
+1,9
@@
#!/bin/sh
# usage:
#!/bin/sh
# usage:
-# .../on-vc.sh VC
USERNAME
SCRIPT
+# .../on-vc.sh VC SCRIPT
# must be invoked by full path to relevant directory
# where
# must be invoked by full path to relevant directory
# where
-# ttyVC is the relevant tty
-# it should be owned by USERNAME
+# ttyVC is the relevant tty which should have good permissions
# ./SCRIPT is the startup script (`repeatedly.sh', `startup.sh', etc.)
# (in the directory whose fullpathname we're invoked with)
# ./SCRIPT is the startup script (`repeatedly.sh', `startup.sh', etc.)
# (in the directory whose fullpathname we're invoked with)
@@
-12,15
+11,12
@@
set -e
fail () { echo 2>&1 "$0: $1"; exit 1; }
fail () { echo 2>&1 "$0: $1"; exit 1; }
-test $# =
3 || fail "usage: $0 VC USERNAME
SCRIPT"
+test $# =
2 || fail "usage: $0 VC
SCRIPT"
vc="$1"
vc="$1"
-username="$2"
-script="$3"
+script="$2"
cd "$(dirname $0)"
test -L .tclshrc || fail "no .tclshrc symlink"
test -x "./$script" || fail "script not executable"
cd "$(dirname $0)"
test -L .tclshrc || fail "no .tclshrc symlink"
test -x "./$script" || fail "script not executable"
-really -u "$username" \
- openvt -f -c "$vc" -w -- \
- screen ./"$script"
+openvt -f -c "$vc" -w -- screen ./"$script"