01-11-2017, 04:06 PM | #1 |
Member
Posts: 18
Karma: 606074
Join Date: Dec 2016
Device: KT3 - and loving it
|
Event on filechange
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 |
01-11-2017, 04:39 PM | #2 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
Advert | |
|
01-11-2017, 05:18 PM | #3 | |
Member
Posts: 18
Karma: 606074
Join Date: Dec 2016
Device: KT3 - and loving it
|
Quote:
a death head image might be a bit overkill lol. I was going with something more subtle, such as a log file lol |
|
01-11-2017, 05:38 PM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
A lot of the Kindle's scripting is in Lua.
And of course, the Kindles need Lua installed because the window manager (Awesome) is programed with Lua (it isn't Java). So if you dig around in */bin, */sbin you will find working examples. Ah, python is only pre-installed in the factory images, not in the customer images. |
01-11-2017, 06:17 PM | #5 |
Member
Posts: 18
Karma: 606074
Join Date: Dec 2016
Device: KT3 - and loving it
|
Id noticed about python... still, had a look at lua and i recon I can work with it, no harder than some of my other languages. I could write haskel for the kindle, but I really cant be bothered to work out the cross compile tool chain... lol
Thanks for the tips |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Galaxy S4 Event 3.14 | Marseille | Android Devices | 31 | 06-20-2013 01:12 AM |