Thread
:
[Idea]program to instantly send new photos into pre-defined server or via mail
View Single Post
magick777
2013-06-12 , 15:29
Posts: 167 | Thanked: 204 times | Joined on Jul 2010
#
9
As I understand it, inotify asks the kernel to keep a watch on the given inodes and the kernel generates an event when those inodes are modified. The monitoring itself shouldn't cause any appreciable cost in terms of power consumption, although, of course, any actions triggered in function of that monitoring still consume power.
As for the bash script, it seems I've been a little hasty in reinventing the wheel; there is a Debian package called inoticoming, which is intended precisely to monitor an incoming directory via inotify and run an arbitrary command when files are placed into it. The squeeze version installs cleanly on my N900, see
http://packages.debian.org/squeeze/inoticoming
Quote & Reply
|
The Following 3 Users Say Thank You to magick777 For This Useful Post:
Estel
,
reinob
,
Wikiwide
magick777
View Public Profile
Send a private message to magick777
Find all posts by magick777