07-19-2013, 09:25 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2013
Device: Kindle 4 NT
|
Launch Kindlet from shell
I would like to launch a Kindlet from shell. I have set up a script to run with crontabs. Now in that script I would like to check for my Kindlet and, if it is not running, launch it. I've been searching the web for a shell command to do so with no luck.
My script currently writes information about running processes (ps -aux and ps -efl) into a log file but there is nothing about my Kindlet whatsoever even when it's running. It does not seem to be registered as a process. What is the correct command for launching a Kindlet from shell? How can I see if it's running? I would be very thankful for any hint. |
07-19-2013, 10:20 AM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hmm...
I would expect that it would be found as a child of one of the Java processes running (child of cvm maybe?). Since the Java system is **essentially** a single-thread process (in that it only runs a single user application at a time), it may not have its own PID assigned. Launching a Kindlet? Would probably have to call some entry point in the Java system. Perhaps ixtab (or anyone else) could answer in more detail. |
07-19-2013, 02:06 PM | #3 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Simple answer: you can't. Not on a K4.
As knc1 pointed out, on the K4, the entire UI lives inside a single jvm instance. A Kindlet doesn't get its own process, but it's simply another class that gets loaded and "brought to the front" - all of this is happening inside the single cvm process. Note that on the K5, you can do something like /usr/bin/lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.kindlet/mnt/us/documents/YourKindlet.azw2 - but not on the K4. |
07-20-2013, 07:48 AM | #4 | |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Quote:
/usr/bin/lipc-set-prop com.lab126.appmgrd start file:///mnt/us/documents/YourKindlet.azw2 |
|
07-20-2013, 08:28 AM | #5 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2013
Device: Kindle 4 NT
|
Many thanks for the fast response. I had the suspicion this could be the problem. So, I assume there is nothing I can do.
Is there any way of running a java application (or anything else), that is not a kindlet from shell or on boot up? I could maybe get what I need purely with a shell script, but it will need some trying and testing. |
07-20-2013, 08:45 AM | #6 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
https://www.mobileread.com/forums/sho...ght=wake+sleep Note that the K4 version does not have a lot of testing time on it. If you have trouble with it on your K4, let us know (in that thread) and we will try to help with the problems. |
|
Tags |
kindle 4 nt, kindlet, launch, shell |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Starting Java Kindlet | digory | Kindle Developer's Corner | 0 | 07-03-2012 06:07 PM |
Kindlet Jailbreak help | Firedb | Kindle Developer's Corner | 1 | 06-10-2012 04:47 AM |
Kindlet Jailbreak | route66 | Amazon Kindle | 7 | 06-02-2012 07:09 AM |
[Help] How can I write kindlet with KT 5.1.0? | isaac.hu | Kindle Developer's Corner | 3 | 04-19-2012 10:49 PM |
Kindlet Entwicklungstutorial | sala | Amazon Kindle | 0 | 01-20-2011 04:33 AM |