Deja Dup

Gene Heskett gheskett at wdtv.com
Mon Jan 11 09:39:59 UTC 2016


On Monday 11 January 2016 01:12:46 Petter Adsen wrote:

> On Sun, 10 Jan 2016 12:56:53 +0100
>
> Johnny Rosenberg <gurus.knugum at gmail.com> wrote:
> > I meant more generally in the inner parts of the operating system.
> > For instance, if I save a file with Gedit, Apache OpenOffice,
> > Audacity, Nano or whatever, is that event logged by the operating
> > system somehow? Or if I delete a file in Nautilus or even in a
> > terminal?
>
> I don't know what Ubuntu One did, but it is indeed possible to monitor
> files for changes - there is a kernel feature that allows this. Do a
> package search for 'inotify' (inode notify), and see if anything there
> does what you want.
>
> Petter

I use inotifywait watching the /var/spool/mail directory to tell a script 
I have new mail.  The script then sends kmail a getmail message over 
dbus, and starts a new invocation of inotifywait since that one died as 
it returned the name of the file that changed.  So from fetchmail 
pulling a mail, to my being able to read it, is the time it takes to get 
past my crap filters.  And its ALL automatic, all I have to do is read, 
and reply if I need to.

I use it in other apps too, but thats the major one.
> --
> "I'm ionized"
> "Are you sure?"
> "I'm positive."


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>




More information about the ubuntu-users mailing list