Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2013, 09: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, 09:48 AM   #2
knc1
Helpdesk Junkie
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: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
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
Old 02-25-2013, 10: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,552
Karma: 6021146
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, 10: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, 10:44 AM   #5
knc1
Helpdesk Junkie
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: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
try taking out the
#!/bin/sh
from the script

30570 is the one being generated inside of KUAL.
knc1 is offline   Reply With Quote
Old 02-25-2013, 10: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, 10: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, 11:00 AM   #8
knc1
Helpdesk Junkie
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: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KUAL: Kindle Unified Application Launcher (v 2.5) twobob Kindle Developer's Corner 1392 12-15-2014 04:34 PM
Tools A helpful list of Extensions for KUAL twobob Kindle Developer's Corner 94 11-15-2014 06:49 PM
Tools KUAL Firewall with BBB filter knc1 Kindle Developer's Corner 103 09-03-2014 09:23 AM
Tools KUAL DateTime Button knc1 Kindle Developer's Corner 23 05-03-2014 09:52 PM
[KUAL] Button Def. Packages (SUPERSEDED) knc1 Kindle Developer's Corner 6 09-27-2013 08:56 PM


All times are GMT -4. The time now is 04:17 PM.


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