|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 631 (0x277)
Types: TextFile
Names: »rttyalert«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z«
└─⟦e5a54fb17⟧
└─⟦this⟧ »pp-5.0/Uip/rcvalert/rttyalert«
#! /bin/sh
CMDLINE="/usr/local/bin/ttyalert"
#CMDLINE="echo"
HOST=""
TMP=/tmp/rttyalert.pp.$$
trap "rm $TMP" 0 1 2 3 15
/bin/awk '
BEGIN { eoh = 50 } # at most 50 lines
$0 ~ /^$/ { eoh = NR + 3}
NR == eoh { print $0 ; exit }
{ print $0 }
' > $TMP
while [ $# -gt 0 ]
do
case "$1" in
-d) if [ $# -gt 0 ]
then shift
fi;;
-f|-e|-s|-w) CMDLINE="$CMDLINE $1 $2"
case $# in
0) ;;
1) shift ;;
*) shift; shift ;;
esac ;;
*) HOST="$HOST$1 ";
if [ $# -gt 0 ]
then shift
fi;;
esac
done
for i in $HOST
do
rsh $i "$CMDLINE" < $TMP&
done