#!/bin/bash while true do sleep 5 for name in `ls /opt/html/*.php |grep -vE 'info.php|config.php|external-fopen-java.php'` //排除不需要的文件 do curl http://192.168.1.33:8090/${name##*/} >/dev/null //截取/后面的 done done