mc_watcher.sh 191 Bytes Edit Raw Blame History 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