SLBR/sendmsg.sh

10 lines
185 B
Bash
Raw Normal View History

2018-08-28 17:39:44 +00:00
#!/bin/bash
function send {
ADRESSES=$(lxc list | cut -f 4 -d '|' \
| grep -Eo "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*")
for ADRESS in $ADRESSES
do
echo $1 | nc -q2 $ADRESS 9090
done
}