Originally Posted by dave2008
Do you have ssh access to your kindle? If so, you can test the scripts from terminal first so you can debug it easily if it is not working.
I finally got around to trying this today, and it turned out my problem were errant dos carriage returns. :/ Removed those with dos2unix and all is well.