Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 beta 5/9/83; site celerity.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!hao!hplabs!sdcrdcf!sdcsvax!sdcc6!celerity!barto
From: barto@celerity.UUCP (David Barto)
Newsgroups: net.sources
Subject: remote wall shell script
Message-ID: <255@celerity.UUCP>
Date: Fri, 18-Jan-85 15:47:36 EST
Article-I.D.: celerity.255
Posted: Fri Jan 18 15:47:36 1985
Date-Received: Mon, 21-Jan-85 04:34:23 EST
Distribution: net
Organization: Celerity Computing, San Diego, Ca.
Lines: 18

#! /bin/sh
# this is a shell script that will run 'wall' on all hosts
# listed in your /etc/hosts file
# 4.2 BSD of course, SysV has no remote hosts.....
echo "Enter message lines followed by a ^D"
echo -n ">> "
unique=/tmp/rwall$$
/bin/cat > unique
hostlist=`/bin/awk '$1!="#" {print $2}' /etc/hosts`
for hostname in $hostlist
do
	/usr/ucb/rsh $hostname /bin/wall < unique&
done
/bin/rm -f unique
-- 
David Barto		      akgua!celerity!barto
{decvax || ucbvax || ihnp4}!sdcsvax!celerity!barto
"If you are using more than 10 sites to get here, you are taking the long way"