| Author |
Message |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Mon 18 Jul 2005, 19:06 Post subject:
Is there anyway to shortcut to a shell command? |
|
Example:
/root/byond/bin/dreamseeker
Could I create a file, and say, place it on my desktop, and whenever I click that file it opens up the console and starts up the example above.
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Mon 18 Jul 2005, 19:19 Post subject:
|
|
Just navigate to your desired file in a Rox window. Grab the file and drop it on your desktop. That will create a link to the original file. When you click on the desktop link it will be just like clicking on the original script.
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Mon 18 Jul 2005, 19:31 Post subject:
|
|
If the executable file is dreamseeker and clicking on it starts it all you need to do is drag it onto the desktop and right click on it and drop an icon in to it.
If on the other hand the executable can only be started from the commandline you will need to use a text editor like Beaver and after clicking 'New' click in the new window and enter these lines:
#! /bin/sh
cd /root/byond/bin
./dreamseeker
then save it as /root/my-applications/dreamseeker
Make it executable by typing in rxvt
chmod a+x /root/my-applications/dreamseeker
Then drag that file to the desktop and drop an icon into it.
If you have trouble following these instructions or it does not work, post here again with any error messages that you receive.
|
|
Back to top
|
|
 |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Mon 18 Jul 2005, 20:07 Post subject:
|
|
Now whenever I click dreamseeker it opens it up in leafpad.
(the shortcut to the shell command)
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Mon 18 Jul 2005, 20:52 Post subject:
|
|
Did you try dragging the originable executable to the desktop.
|
|
Back to top
|
|
 |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Mon 18 Jul 2005, 20:54 Post subject:
|
|
Yep, It still opens as a text file.
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Mon 18 Jul 2005, 21:03 Post subject:
|
|
Does this program work when you click on the executable /root/byond/bin/dreamseeker.
|
|
Back to top
|
|
 |
flamesage guest
Guest
|
Posted: Wed 20 Jul 2005, 16:00 Post subject:
|
|
no, but i just read that other post, and that worked.
Now I have another question...
When you go to byond.com
and select JOIN on a game, it opens up asking whta kind of file ya want it to open as...
How would I tell it to open DreamSeeker through the console?
|
|
Back to top
|
|
 |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Wed 20 Jul 2005, 16:02 Post subject:
|
|
(with the connect.dms that it's trying to open)
|
|
Back to top
|
|
 |
|