Blame view

mc_watcher.sh 191 Bytes
d8ab687c   Liu Haoyu   ftp文件监听服务创建
1
2
3
4
5
6
7
8
9
  #!/bin/bash
  
  TARGET_DIR="/data/"
  
  mc watch --recursive local/togoftp | while read events;
  do
    hostUrl=${events#*//}
    echo "${hostUrl#*/}" > /dev/udp/${udp_server_ip}/${udp_server_port}
  done