Quote:
Originally Posted by gilberteu
I assume that you only want a particular group to receive the message. Do:
[B]man wall
Read about the -g option which allows you to broadcast to a specified group.
Hope this helps.
Thanks gilberteu for the wall -g command but
I do not want to send to every one in group
any how
who | grep -E "user1|user2|user3" | tr -s " " ""| cut -f 2 -d " " > temp
gave all the terminal the required users logged on to and then
cat Temp | while ln=`line`
do
echo "Message to Send" | tee /dev/$ln
done
sends the message to all required terminal
tee /dev/pts/15 send message to person logged on pts/15
Thanks zazzybob
the tee was quite helpful