02-25-2013, 08:41 AM | #1 |
Enthusiast
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? |
02-25-2013, 08:48 AM | #2 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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" |
|
Advert | |
|
02-25-2013, 09:19 AM | #3 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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 |
02-25-2013, 09:41 AM | #4 |
Enthusiast
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? |
02-25-2013, 09:44 AM | #5 |
Going Viral
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. |
Advert | |
|
02-25-2013, 09:52 AM | #6 |
Enthusiast
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 |
02-25-2013, 09:53 AM | #7 |
Enthusiast
Posts: 35
Karma: 470250
Join Date: Feb 2013
Device: k5
|
knc1 will try, if I can remember another time... tx again ~:"
|
02-25-2013, 10:00 AM | #8 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
|
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 |