Last active
February 27, 2019 16:26
-
-
Save H3wastooshort/a4d063da8b6e184a4b4ecb654a308b63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| while true;do | |
| MONITORDIR="/srv/dev-disk-by-label-Podcasts/" | |
| inotifywait -m --exclude "[^m][^3][^u]$" "$MONITORDIR" -e create -e moved_to | | |
| while read path action file; do | |
| #bash /dp.sh | |
| beep | |
| done | |
| done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment