#!@zsh@/bin/zsh lsof() { @lsof@/bin/lsof ${@} 2>/dev/null | tail -n +2} ignoredFiles() { cat < len) print substr($0, 1, len-3) "..."; else print; }') [[ ${fType} == "REG" ]] || continue clear @pv@/bin/pv -W -D 2 -i 0.5 -d ${pid}:${fd} -s ${size} -F "%r %a %p %e %I" -p -r -I -e -N ${name} slept=0 watched=true break done if $watched || [[ $slept -ge $(($sleepTimeout / $sleep)) ]]; then printf "inotify (%s)\n" $(date +"%T") @inotify@/bin/inotifywait -r -e access /var/spool/uucp &>/dev/null slept=0 else sleep 0.1 printf "." slept=$(($slept + 1)) fi done