4

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?

Wolf
  • 3,045
  • 2
    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 'SO- stop being evil' Oct 25 '10 at 18:18

2 Answers2

6

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.

Cry Havok
  • 2,048
1

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

user455
  • 1,260