Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 02:36
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Is there anyway to shortcut to a shell command?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: 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
View user's profile Send_private_message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send_private_message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send_private_message 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: 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
View user's profile Send_private_message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Mon 18 Jul 2005, 20:52    Post_subject:  

Did you try dragging the originable executable to the desktop.
Back to top
View user's profile Send_private_message 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Mon 18 Jul 2005, 20:54    Post_subject:  

Yep, It still opens as a text file.
Back to top
View user's profile Send_private_message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send_private_message 
flamesage guest
Guest


PostPosted: 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

PostPosted: Wed 20 Jul 2005, 16:02    Post_subject:  

(with the connect.dms that it's trying to open)
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0458s ][ Queries: 12 (0.0030s) ][ GZIP on ]