ssh="ssh -a -x -oBatchmode=yes -oSetupTimeOut=20"
ulimit -S -u 96
+br="tpope br"
+
if [ -f /tmp/away-actions.pid ]; then
oldpid="`cat /tmp/away-actions.pid`"
if kill -0 "$oldpid"; then
newpid="`cat /tmp/away-actions.pid`"
[ "$newpid" = "$oldpid" ] && kill "$newpid"
sleep 1
- if [ -f /tmp/away-actions.pid && "`cat /tmp/away-actions.pid`" = "$oldpid" ]; then
+ if [ -f /tmp/away-actions.pid && "x`cat /tmp/away-actions.pid`" = "x$oldpid" ]; then
kill -9 "$oldpid"
rm /tmp/away-actions.pid
elif [ -f /tmp/away-actions.pid ]; then
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 homer br -F -F
+ $br -F -F
ulimit -S -u 92
- for host in sarah homer; do
+ for host in buster; 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
- $ssh homer br -n 1
+ $br -n 4
rm -f /tmp/.tpope_lights
- $ssh homer br -n 1
+ $br -n 4
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
echo "$information" > "$HOME/.plan"
fi
-for host in bart homer sarah clancy; do
- ping -c 1 $host >/dev/null && scp -q "$HOME/.status" $host: 2>/dev/null
-done
+#for host in michael lucille buster oscar; do
+ #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 maeby >/dev/null && scp -q "$HOME/.status" maeby: 2>/dev/null
+ping -c 1 tobias >/dev/null && scp -q "$HOME/.caminfo.deskcam" tobias:.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