Yea, good point. AKA brute force.
I did verify that it will run fine for 20 minutes if I leave it plugged in and ssh logged in. So my only fear with a bunch of printf's and pipes is that it's getting killed abruptly on the way to suspend/deep sleep so it won't really log much.
So I'm wondering if something needs to go in /etc/upstart, or I need to use something like start-stop-daemon for it to not be killed in low power. That's all that I can think of that peterson's "onlinescreensaver" does (other than mine is python). I haven't actually tried the one from peterson. Do you NiLuJe know if it really works?
I mean it seems logical. Kindle would want to kill anything and everything it didn't know about when suspending. Maybe there is some other way to kick off a script with a RTC event happens? What I don't even know right now, since my process is dying, is if the RTC is really waking the kindle back up from suspend or not.