hipporion/normalize_volume_all.sh
2019-10-01 19:01:56 +02:00

12 lines
242 B
Bash
Executable file

#!/bin/bash
vol=9
cd /opt/ksp
. config.txt
ip_prefix=${server_ip%.*}
./hangup_all.sh
sleep 1
cat phones.txt | awk '{print $1}' | grep '^[2-5]' | xargs -i -n1 -P0 ./admin_scripts/normalize_volume.pl "$ip_prefix.{}" "$telnet_pass" "$vol"