Created
April 12, 2018 02:42
-
-
Save maiquelleonel/a120ffa61763a63c9ccaedf08694b703 to your computer and use it in GitHub Desktop.
script para monitorar uma pasta
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/sh | |
| inotifywait --recursive --monitor --quiet --event close_write --format '%f' /home/pi/Videos/ | | |
| while read FILE ; do | |
| reboot | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment