You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
303 B
7 lines
303 B
4 years ago
|
#!/bin/sh
|
||
|
pass=`sed -n 's/telnet_pass=//p' config.txt`
|
||
|
ip=`sed -n 's/server_ip=//p' config.txt | sed 's/\.[0-9]*$//'`
|
||
|
for i in `cat phones.txt | grep -v backup | grep -v \- | sed -n 's/^\([0-9][0-9]\).*/\1/p'`; do
|
||
|
admin_scripts/list_errors.pl "$ip.$i" "$pass" 2>&1 | sed '/^$/d' | sed "s/^/$i: /"
|
||
|
done
|