HD Install :: Might be the wrong areAdding a link to the desktop



might be the wrong area to ask (probably more of a dev question), but having problems with getting an icon to launch a shellscript in a term window and keep it on screen. As of right now, I have an app that calls upon java (well, make that 3 of them). So, what I do now is open aterm, sudo su, change to my directory the ./program.sh

I want to make an icon that will launch it for me, and the syntax I have so far for my lnk is sudo aterm -T "my program" -e /path/program.sh

now, if I just open aterm and type in "sudo /path/program.sh" I get the following error message, which I assume is also being produced by the lnk on the desktop, hence the reason it closes.

error: exception in thread "main" java.lang.NoClassDefFoundError: /confidential directory/examples/Banzai

So, it works if I change to the directory the run ./ it works fine. Any ideas?

add this to the beginning of the script:
Code Sample
cd `dirname $0`

Sweet! Well, kind of, I can launch it from aterm with just sudo /path/program.sh

Now, how do I get a link on my desktop to run it?

same as any other program...just use the command "aterm -e sudo /path/program.sh" in a new *.lnk file where it says "Command:"
No luck with that, I still just get a window pop open then close. I spent the entire day trying every aterm possibility and nothing. This particular script also launches a small app that lets clients input data, and that doesn't open, so I know it isn't terminating due to lack of user input, and it works fine by just opening aterm and putting in the path without sudo, so very odd. Everything I have seen says it should work... actually i think I have about 50 ways that it should work :) now, in the lnk, the type is set to Program, would I need to change that? anyways, my other 2 scripts which just open a terminal window and display heartbeats and client/server transactions don't work either using a .lnk or through the menu system of JWM.
Next Page...
original here.