Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon. If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
On Sun, 20 Oct 2002, steve wrote:
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Have you tried /path/to/the/script/runLime.sh (ie. without the . dir)? What are the permissions of runLime.sh? In which directory is runLime.sh? Have you tried adding this directory to your path, if it is not already in it? Regards Ole
On Sunday 20 October 2002 21:42, Ole Kofoed Hansen wrote:
On Sun, 20 Oct 2002, steve wrote:
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Have you tried /path/to/the/script/runLime.sh (ie. without the . dir)? Yes. It doesn't work either.
What are the permissions of runLime.sh? -rwxrwxr-x 1 clara users 441 Oct 18 16:06 runLime.sh
In which directory is runLime.sh? It's in my home directory: /home/clara/LimeWire
your path, if it is not already in it? echo $PATH /home/clara/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/bin:/opt/gnome/bin No, it's not in the path but if I specify the full route it shouldn't need to be no? Do you think that this is the problem? If not, how do I change the
Have you tried adding this directory to path? Any Ideas? Thanks for your patience, Steve.
Hi Do You have "#!/bin/bash" line at the first line? Jaska. On Sunday 20 October 2002 23:19, steve wrote:
On Sunday 20 October 2002 21:42, Ole Kofoed Hansen wrote:
On Sun, 20 Oct 2002, steve wrote:
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Have you tried /path/to/the/script/runLime.sh (ie. without the . dir)?
Yes. It doesn't work either.
What are the permissions of runLime.sh?
-rwxrwxr-x 1 clara users 441 Oct 18 16:06 runLime.sh
In which directory is runLime.sh?
It's in my home directory: /home/clara/LimeWire
Have you tried adding this directory to
your path, if it is not already in it?
echo $PATH /home/clara/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt /gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/bin:/opt/gnome/bin No, it's not in the path but if I specify the full route it shouldn't need to be no? Do you think that this is the problem? If not, how do I change the path?
Any Ideas? Thanks for your patience, Steve.
On Sunday 20 October 2002 22:46, jaakko tamminen wrote:
Hi
Do You have "#!/bin/bash" line at the first line?
Jaska.
No. Here is the file: #!/bin/sh # # Runs LimeWire. This script must be executed in your LimeWire # install directory. # # We must set the J2SE_PREEMPTCLOSE environment variable to 1 to # work around some limitations in the JDK1.3. For more information # see http://java.sun.com/j2se/1.3/relnotes.html#vm # CLASSPATH=".:collections.jar:xerces.jar:jl011.jar:MessagesBundles.jar" export CLASSPATH J2SE_PREEMPTCLOSE=1 export J2SE_PREEMPTCLOSE java -jar RunLime.jar And here is the directory entry: ls *.sh runLime.sh What is the sh shell?
Hi #!/bin/sh is the same thing as bash. It is the command interpreter, that is transalating the script into machine-language, roughly speaking... It is usually needed in scripts, so that the correct interpreter is used with that script. I believe that there will be someone that can be able to help You further, because I'm not so familiar with Java, and possible error that You have...sorry. Jaska On Monday 21 October 2002 00:41, steve wrote:
On Sunday 20 October 2002 22:46, jaakko tamminen wrote:
Hi
Do You have "#!/bin/bash" line at the first line?
Jaska.
No. Here is the file:
#!/bin/sh # # Runs LimeWire. This script must be executed in your LimeWire # install directory. # # We must set the J2SE_PREEMPTCLOSE environment variable to 1 to # work around some limitations in the JDK1.3. For more information # see http://java.sun.com/j2se/1.3/relnotes.html#vm # CLASSPATH=".:collections.jar:xerces.jar:jl011.jar:MessagesBundles.jar" export CLASSPATH J2SE_PREEMPTCLOSE=1 export J2SE_PREEMPTCLOSE java -jar RunLime.jar
And here is the directory entry: ls *.sh runLime.sh
What is the sh shell?
On Sun, 20 Oct 2002, steve just had to get this off his chest:
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
A shell script needs <#include drum-roll.h> Yes, a /shell/! Try to find the option for "run in a shell". Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 8 24N , 4 32 40E. SuSE 8.0 x86 Kernel k_Athlon 2.4.19-4GB See headers for PGP/GPG info.
On Monday 21 October 2002 11:27, Theo v. Werkhoven wrote:
On Sun, 20 Oct 2002, steve just had to get this off his chest:
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
A shell script needs <#include drum-roll.h>
Yes, a /shell/! Try to find the option for "run in a shell".
Theo
I can find 'run in a terminal' but 'not run in a shell'. drum-roll.h? OK I give up. I'll just type it in an x-term! Thanks anyway. Steve.
* steve
Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Make a script to run a script. The script 'runLime.sh' needs to be executed in the LimeWire directory. - - - script to run LimeWire - - - #!/bin/bash cd /your/directory/to/LimeWire runLime.sh exit -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
On Monday 21 October 2002 16:27, SuSEnixER wrote:
* steve
[10-20-02 13:57]: Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Make a script to run a script. The script 'runLime.sh' needs to be executed in the LimeWire directory.
- - - script to run LimeWire - - - #!/bin/bash cd /your/directory/to/LimeWire runLime.sh exit
Thanks. Worked first time! Steve
* steve
On Monday 21 October 2002 16:27, SuSEnixER wrote:
* steve
[10-20-02 13:57]: Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Make a script to run a script. The script 'runLime.sh' needs to be executed in the LimeWire directory.
- - - script to run LimeWire - - - #!/bin/bash cd /your/directory/to/LimeWire runLime.sh exit
Thanks. Worked first time!
Of course, you could have just added the 'cd /...etc' line into the top of the 'runLime.sh' script and make a link to it in your $HOME directory or some other directory in your $PATH. Your choice. -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
On Monday 21 October 2002 19:14, SuSEnixER wrote:
* steve
[10-21-02 10:51]: On Monday 21 October 2002 16:27, SuSEnixER wrote:
* steve
[10-20-02 13:57]: Hi. I run a program by launching a script: ./runLime.sh Fine. But I want a one click icon.
If I right click>create new>link to application>execute>/path/to/the/script/./runLime.sh and click the new icon, it doesn't work. 'sh runLime.sh' and "sh runLime.sh" fail too. SuSE 8.0, Kde 304. What am I doing wrong? Thanks, Steve.
Make a script to run a script. The script 'runLime.sh' needs to be executed in the LimeWire directory.
- - - script to run LimeWire - - - #!/bin/bash cd /your/directory/to/LimeWire runLime.sh exit
Thanks. Worked first time!
Of course, you could have just added the 'cd /...etc' line into the top of the 'runLime.sh' script and make a link to it in your $HOME directory or some other directory in your $PATH. Your choice.
Thanks. It's better like that. Now let's go for those mp3's.
participants (5)
-
jaakko tamminen
-
Ole Kofoed Hansen
-
steve
-
SuSEnixER
-
Theo v. Werkhoven