-
Script to monitor folder for new files and encode new ones
I'm in the process of creating a server that will monitor new files from dropbox, and when it detects a new file, to encode it to mp4 and save it into another folder on dropbox.
I'll be using HandbrakeCLI for the encoding, and I figured cron + a bash script could do this, but I'm not entirely sure where to begin.
Are there any applications out there that already do something similar to this?
Thanks for any help.
-
Re: Script to monitor folder for new files and encode new ones
The kernel's inotify service will tell you when a new file is added to a directory.
Many applications and services use inotify. Try the command apt-cache search inotify for a list of notification applications.
For example, the incron or inotincoming applications may provide the service you're looking for. So may several others.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks