anti-AD/scripts/tools/start-valid.sh

17 lines
366 B
Bash
Raw Normal View History

2019-12-14 16:23:37 +08:00
#!/bin/bash
2019-12-14 21:29:41 +08:00
#每天运行一次
2019-12-14 16:23:37 +08:00
source /etc/profile
cd $(cd "$(dirname "$0")";pwd)
cd ../origin-files
rm -f split-tmp-list_*
split -l 5000 ../adblock-for-dnsmasq.conf split-tmp-list_
2019-12-15 17:57:32 +08:00
cd ../tools
2019-12-15 17:56:26 +08:00
git pull
2019-12-14 16:23:37 +08:00
# shellcheck disable=SC2045
for f in $(ls ../origin-files/split-tmp-list_*)
do
nohup php valid-addr.php $(basename "$f") >> ./std-$(basename "$f").out &
done