Results 1 to 2 of 2

Thread: Script to monitor folder for new files and encode new ones

  1. #1
    Join Date
    Jun 2005
    Location
    Florida
    Beans
    42
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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.
    Tutorials by me
    Midori Web Browser

  2. #2
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •