This file contains 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 | |
# Uses 'inoticoming' to efficiently monitor a directory and call an upload script. | |
# | |
# Usage: | |
# Remember to set the variables at the top of the script files. | |
# Can be run directly or at startup by adding lines to /etc/rc.local (Debian) example: | |
# sudo -b -u www-data /path/to/YouTubeMonitor.sh MONITOR_DIR COMPLETE_DIR [PLAYLIST_ID] | |
# Add one monitor line per directory/playlist. | |
# Now simply drop files into the monitored directory and they will be uploaded, named, tagged and playlisted. | |
# |