Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2013, 08:41 AM   #1
peepo
Enthusiast
peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.
 
peepo's Avatar
 
Posts: 35
Karma: 470250
Join Date: Feb 2013
Device: k5
kual: kterm -e myapp.sh

How to set up KUAL GUI launcher extension to launch kterm and run in same kterm?

#!/bin/bash
bin/kterm -e myapp.sh
exit

whilst their are a host of ways of getting kterm to open,
none as yet take -e option and run another script in the same terminal.
afaict using ps ax the myapp.sh runs, but not in the terminal....

How to do this so it works?
peepo is offline   Reply With Quote
Old 02-25-2013, 08:48 AM   #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 peepo View Post
How to set up KUAL GUI launcher extension to launch kterm and run in same kterm?

#!/bin/bash
bin/kterm -e myapp.sh
exit

whilst their are a host of ways of getting kterm to open,
none as yet take -e option and run another script in the same terminal.
afaict using ps ax the myapp.sh runs, but not in the terminal....

How to do this so it works?
Currently, KUAL buttons are non-interactive.

So for now, you will need a button per external command.
Although you do not need the external shell script as shown above.
"action" : "bin/kterm -e myapp.sh"
will do the job, the string value of the action tag is passed to the system default command processor (in this case Ash).

OR
If the above does not work, try:
"action" : "bin/kterm", "parms" : "-e myapp.sh"
knc1 is offline   Reply With Quote
Advert
Old 02-25-2013, 09:19 AM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
make it easy on yourself. wrap it in a shell...

{"name": "Start MYTHING", "priority": 1, "action": "bin/start_MYTHING.sh"}

and then in bin/start_MYTHING.sh

Code:
#!/bin/sh
/mnt/us/extensions/kterm/bin/kterm -e /mnt/us/extensions/MYTHING/bin/myapp.sh
That's how it is done in the frotz extension.
twobob is offline   Reply With Quote
Old 02-25-2013, 09:41 AM   #4
peepo
Enthusiast
peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.
 
peepo's Avatar
 
Posts: 35
Karma: 470250
Join Date: Feb 2013
Device: k5
knc1 thanks for response, unfortunately as per my original description myapp.sh is launched, but in separate process afaict

as a check I also used "params: ps ax" and checking via ssh indeed:

30568 ? SN 0:00 /bin/sh bin/kterm ps ax
30569 ? SNl 0:00 /mnt/us/extensions/kterm/bin/kterm
30570 ? SN 0:00 sh -c /mnt/us/extensions/kterm/bin/matchbox-keyboard --xid
30571 ? SN 0:00 /mnt/us/extensions/kterm/bin/matchbox-keyboard --xid
30572 pts/1 SNs+ 0:00 /bin/sh
30575 pts/0 RN+ 0:00 ps ax

2x kterm running

any further ideas?
peepo is offline   Reply With Quote
Old 02-25-2013, 09:44 AM   #5
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
try taking out the
#!/bin/sh
from the script

30570 is the one being generated inside of KUAL.
knc1 is offline   Reply With Quote
Advert
Old 02-25-2013, 09:52 AM   #6
peepo
Enthusiast
peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.
 
peepo's Avatar
 
Posts: 35
Karma: 470250
Join Date: Feb 2013
Device: k5
tx 2bob!

had become fixated on local links, as per instructions somewhere,
had not hit on absolute...

cheers
peepo is offline   Reply With Quote
Old 02-25-2013, 09:53 AM   #7
peepo
Enthusiast
peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.peepo ought to be getting tired of karma fortunes by now.
 
peepo's Avatar
 
Posts: 35
Karma: 470250
Join Date: Feb 2013
Device: k5
knc1 will try, if I can remember another time... tx again ~:"
peepo is offline   Reply With Quote
Old 02-25-2013, 10:00 AM   #8
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 peepo View Post
knc1 will try, if I can remember another time... tx again ~:"
You did notice that your '-e' was being stripped from the command line, didn't you?
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KUAL: Kindle Unified Application Launcher (v2.7) twobob Kindle Developer's Corner 2316 03-27-2024 06:23 PM
KUAL DateTime Button knc1 Kindle Developer's Corner 65 11-17-2023 01:16 PM
A helpful list of Extensions for KUAL twobob Kindle Developer's Corner 135 01-23-2023 11:20 PM
KUAL Firewall with BBB filter knc1 Kindle Developer's Corner 135 06-10-2021 07:40 AM
[KUAL] Button Def. Packages (SUPERSEDED) knc1 Kindle Developer's Corner 6 09-27-2013 07:56 PM


All times are GMT -4. The time now is 03:10 AM.


MobileRead.com is a privately owned, operated and funded community.