projects
/
tpope-extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
34ce5f2
)
New hostnames (obsolete file)
author
Tim Pope
<code@tpope.net>
Sun, 9 Jul 2006 22:32:01 +0000
(22:32 +0000)
committer
Tim Pope
<code@tpope.net>
Sun, 9 Jul 2006 22:32:01 +0000
(22:32 +0000)
bin/away-actions
patch
|
blob
|
history
diff --git
a/bin/away-actions
b/bin/away-actions
index 2e13665aabdee9a86d3ae90bc7f3e1f3a8fd8e5f..30ad0e4000d5e9848fa8425865275adad0dc2290 100755
(executable)
--- a/
bin/away-actions
+++ b/
bin/away-actions
@@
-9,6
+9,8
@@
PATH="$HOME/bin:/usr/bin:/bin"
ssh="ssh -a -x -oBatchmode=yes -oSetupTimeOut=20"
ulimit -S -u 96
ssh="ssh -a -x -oBatchmode=yes -oSetupTimeOut=20"
ulimit -S -u 96
+br=lucille
+
if [ -f /tmp/away-actions.pid ]; then
oldpid="`cat /tmp/away-actions.pid`"
if kill -0 "$oldpid"; then
if [ -f /tmp/away-actions.pid ]; then
oldpid="`cat /tmp/away-actions.pid`"
if kill -0 "$oldpid"; then
@@
-51,19
+53,19
@@
esac
find /tmp -name .tpope_lights -maxdepth 1 -mmin 60 -exec rm {} \;
if [ "$is_away" = 1 -a ! -f /tmp/.tpope_lights ]; then
touch /tmp/.tpope_lights
find /tmp -name .tpope_lights -maxdepth 1 -mmin 60 -exec rm {} \;
if [ "$is_away" = 1 -a ! -f /tmp/.tpope_lights ]; then
touch /tmp/.tpope_lights
- $ssh
home
r br -F -F
+ $ssh
$b
r br -F -F
ulimit -S -u 92
ulimit -S -u 92
- for host in
sarah hom
er; do
+ for host in
bust
er; do
ping -c 1 $host >/dev/null && $ssh $host tpope xssc -lock 2>/dev/null &
done
elif [ "$is_away" = 0 -a -f /tmp/.tpope_lights ]; then
ping -c 1 $host >/dev/null && $ssh $host tpope xssc -lock 2>/dev/null &
done
elif [ "$is_away" = 0 -a -f /tmp/.tpope_lights ]; then
- $ssh
homer br -n 1
+ $ssh
$br br -n 4
rm -f /tmp/.tpope_lights
rm -f /tmp/.tpope_lights
- $ssh
homer br -n 1
+ $ssh
$br br -n 4
ulimit -S -u 92
ulimit -S -u 92
-
for host in lisa
; do
- ping -c 1 $host >/dev/null && $ssh $host tpope unlock
- done
+
# for host in lucille
; do
+
#
ping -c 1 $host >/dev/null && $ssh $host tpope unlock
+
#
done
fi
ulimit -S -u 96
fi
ulimit -S -u 96
@@
-82,12
+84,12
@@
else
echo "$information" > "$HOME/.plan"
fi
echo "$information" > "$HOME/.plan"
fi
-for host in
bart homer sarah clancy
; do
+for host in
gob barry lucille buster oscar
; do
ping -c 1 $host >/dev/null && scp -q "$HOME/.status" $host: 2>/dev/null
done
ping -c 1 $host >/dev/null && scp -q "$HOME/.status" $host: 2>/dev/null
done
-ping -c 1
homer >/dev/null && scp -q "$HOME/.caminfo.deskcam" homer
:.caminfo 2>/dev/null
-ping -c 1
sarah >/dev/null && scp -q "$HOME/.caminfo.bedcam" sarah
:.caminfo 2>/dev/null
+ping -c 1
lucille >/dev/null && scp -q "$HOME/.caminfo.deskcam" lucille
:.caminfo 2>/dev/null
+ping -c 1
buster >/dev/null && scp -q "$HOME/.caminfo.bedcam" buster
:.caminfo 2>/dev/null
rm -f .caminfo.deskcam .caminfo.bedcam
exit 0
rm -f .caminfo.deskcam .caminfo.bedcam
exit 0