SLBR/sendmsg.sh

8 lines
172 B
Bash
Raw Normal View History

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