View Single Post
Old 01-11-2017, 04:39 PM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by dan3008 View Post
Hi guys

I was wondering if anyone knows of a way to make a script run on the kindle every time a particular file is changed (in this case deleted)?

I've seen incron and inotify, but no references to if either of them even exist for the kindle, let alone how to use them

any help would be appreciated.

thanks

dan
inotify is a kernel function and it should be included (I think dBus uses it, something does).
Put the blocker directory in and monitor it for delete (check the bundled Lua libraries, there might already be a scripted interface to inotify included).
There should be a eips or lipc call that will toss up a death's head image on the screen.
knc1 is offline   Reply With Quote