You are not logged in.

#1 2005-06-01 16:35:07

fdrebin
Member
Registered: 2005-04-25
Posts: 152

how to do shortcut to a *.sh

to start limewire i have to change to the according dir and run the "sh runLimewire.sh" from a console.
i want a direct shortcut !

Offline

#2 2005-06-01 16:45:42

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: how to do shortcut to a *.sh

so put it into an executable file.

#!/bin/bash
/complete/path/runLimewire.sh &

then change permisions to user:
chown username /path/to/file
and make it executable:
chmod 755 /path/to/file

then all you'll have to do is click on it.

Offline

#3 2005-06-01 16:47:19

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: how to do shortcut to a *.sh

or if you're in bash:

alias limewire "sh /path/to/runLimewire.sh"

Offline

#4 2005-06-01 17:01:31

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: how to do shortcut to a *.sh

$ chmod +x /path/to/runLimewire.sh
$ ln -s /path/to/runLimewire.sh /usr/local/bin/

Or something like that... But executing a sh file in a sh file as only action doesn't make sense, can as well use a link then. If the thing only runs when executed from its dir then making a small script which first changes to that dir and then executes it is fine.

Offline

#5 2005-06-01 18:29:14

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: how to do shortcut to a *.sh

IIRC, limewire does need you to change to that directory...

Dusty

Offline

#6 2005-06-01 18:37:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: how to do shortcut to a *.sh

that makes limewire crappy then

actually, I always thought limewire was a great app - at the time of rampant p2p apps (morpheus, kazaa, etc) it was the best... props to java!

Offline

#7 2005-06-03 01:17:40

bosewicht
Member
From: Honolulu, HI
Registered: 2004-05-29
Posts: 67

Re: how to do shortcut to a *.sh

hmm, actually, i think i didn't something like

#!/bin/bash
cd /complete/path/to/limewire
./runLimewire.sh

called that file Limewire then i think i did an alias

something like that, i'm not at home right now, but it did work


<b>There are 10 kinds of people in the world - those who understand binary
and those who don't.</b>

<b>I'm Steve and I'm a Super Villian</b>
http://www.rofl.name/flash/switchlinux4

Offline

Board footer

Powered by FluxBB