Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder shared with others through Dropbox. When a file is added to this folder, I get a system tray notification in KDE --- but of course if I'm not at my computer, I wouldn't see the notification. Is there a way to automatically log any changes within a folder (especially file creation), and/or automatically run a bash script to, say, send an email to myself as a more durable "alert"?

A google search turned up incron ... It sounds about right. Has anyone used this software?

share|improve this question
The inotify API (which is what inotifywait, incron and inoticoming use) is for monitoring changes to local files. What you're looking for is a notification of a change on Dropbox's servers. This is an FAQ on the Dropbox forums, and the standard answer is to use RSS (plus an RSS-to-email gateway if you really want email). – Gilles Oct 25 '10 at 18:18
Thanks, Gilles. That should work just fine! – Wolf Oct 25 '10 at 19:12

You probably want inoticoming, which is a user space command that uses the inotify framework. You can use it to watch a directory and execute the script of your choice, which can then do anything you want.

I've used this extensively for monitoring directories for file activity and it works well.

share|improve this answer

It's a pretty straightforward usecase of inotify, unfortunately that's a programming API, not a user utility.

share|improve this answer
inotifywait is the basic utility built on the inotify API, and incron and inoticoming are others. But that's not relevant to monitor a change on a remote server. – Gilles Oct 25 '10 at 18:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.