I want to monitor (by cron, I got that part covered :P) new audio files in folders so I can add them toa separate XML files which act as an podcast RSS feed. The file structure looks like this:
- Podcasts
-- Show number one
--- Audio file of the show for week one.mp3
--- Audio file of the show for week two.mp3
-- Show number two
--- Audio file of the show for week one.mp3
--- Audio file of the show for week two.mp3
-- So on
The audio file creation is automated by a computer in our studio, that uploads them to our ubuntu server so the files are accessible publicly. Now, the idea is to make everything automated because we only have volounteers and they're lazy! :)
Now, the script would need to monitor for new folders into "podcast" and new audio in "show number X" folders. Everytime there is a new show folder, I need to create a new XML file for that specific show podcast and everytime there is a new audio in a show, I need to add it to the show's XML.
Now I know the structure of XMLs just fine, I'm just completely in the dark when it comes to bash scripts. How can I make a script that looks for new file and folders? Can the script write within an XML file?
Regards,