Skip to content

Instantly share code, notes, and snippets.

View gavingc's full-sized avatar

Gavin Kromhout gavingc

View GitHub Profile
@gavingc
gavingc / YouTubeMonitor.sh
Created March 5, 2011 08:45
YouTubeMonitorAndUpload
#!/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.
#