maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Script Launcher (https://talk.maemo.org/showthread.php?t=5897)

convulted 2007-04-17 17:00

Script Launcher
 
I have a bunch of different shell scripts and since I hail from a mostly Windows environment, I am used to launching batch files by clicking on their icon. Is there any way of adding an "icon" to the app launcher thing on Maemo such that clicking the icon launches a shell script? (Say, one icon per script.)
It would be useful to have USB-Mount and USB-Unmount scripts accessible from the "desktop" (using the "Idea" application Seri@lDie mentioned somewhere else).

Any thoughts?

ArnimS 2007-04-18 17:57

Re: Script Launcher
 
Quote:

Originally Posted by convulted (Post 44752)
I have a bunch of different shell scripts ... (using the "Idea" application Seri@lDie mentioned somewhere else).

Any thoughts?

Yeah. Try idea and let us know how it works for you.

fpp 2007-04-18 20:55

Re: Script Launcher
 
Simplest way I know of to do just that is to use John Costigan's "CPU/Mem/Screenshot applet with run command", from here :

http://gnuite.com:8080/nokia770/

convulted 2007-04-19 01:41

Re: Script Launcher
 
Hacking ~/.idea/idea.xml to run my scripts causes an immediate reboot on execution of the respective shortcuts. Weird.
And I can't get any CPU applet working on 2007 hacker edition (...and Marbles doesn't want to work either!!!). Using Idea would be sleeker though :-)

Tahitibob 2007-06-05 18:12

Re: Script Launcher
 
Try this :
http://david.hautbois.free.fr/dokuwi...u.php?id=kerez

David.

adammelancon 2007-08-16 21:41

Re: Script Launcher
 
David! What a great app!
I'm using it as a VNC launcher... so that i can directly connect to my machines without having to type in a hostname/password

Example:
Name:VNC Home
Command: vncviewer --hostname=homeIP:0 --password=homevncpassword homeIP

It works like a charm!

Thanks for a great app!

Tahitibob 2007-08-17 07:38

Re: Script Launcher
 
Hi
I'm happy this application is useful for You.

Thanks for feedback !

David.

desiv 2007-08-17 21:20

Re: Script Launcher
 
I must be missing something....
I want to launch Kismet (shell based wireless tool) from the cpu-mem-screenshot applet.
You have to be root to run Kismet. So, I have that all set up.
I have a very simple shell script that says:
#!/bin/sh
/usr/bin/sudo /usr/bin/kismet

When I launch an xterm and type ./ksmt or /home/user/ksmt, it runs great.

So, I put an entry in the launcher that launches /home/user/ksmt
And, it sort of works.

Apparently it runs it, but I can't see it. I can't interact with my screen and I have to restart if I don't have an xterm already running.

I decided to run an xterm first and then do it. When I do that, I can't get to my screen, except the xterm (menu, load applet, etc don't respond), BUT I can type in my xterm. And when I do a ps, I see kismet running!!
I just can't see it. Apparently it is spawning it, but I can't see the shell it's in. Not sure why the menus stop working.

But, when I kill the ksmt process, I can use the menus again.

Is there an easy way to spawn the script and have that shell be in the foreground?
Is there a way to spawn osso-xterm and then run the script??

Thanx,
desiv

Tahitibob 2007-08-18 15:01

Re: Script Launcher
 
Hi

Kerez 0.0.3 is available.

Documentation
Download

David.


All times are GMT. The time now is 15:16.

vBulletin® Version 3.8.8