Jul
01
2022
linux 下inotifywait 监控文件更新并执行脚本
#!/bin/bash
nohup inotifywait -mrq –event create /data/ftp/dhcp/ | while read event
do
sleep 30s
cd /data/python && /usr/bin/python3 /data/python/dhcp.py
done > /opt/inotifywait/run.log 2>&1 &
最活跃的读者