LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2002, 06:20 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Link on desktop to run sh


I have to run a program from a console. But in order to do, I have to keep a console open. When I am in X how do I make a link on my desktop to just click it and have the console open up and automatically run that command and stay open.

I am talkin about LimeWire. I have to be in LimeWire Directory and then open a Konsole and run sh runlime.sh to get the program to start. How can I make this just a click from my desktop?

Thanks
 
Old 05-15-2002, 06:30 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Make a simple script to do that. Run the following commands in a terminal.
Code:
cat > runlime <<EOF
#!/bin/bash
cd /limewiredirectory
sh runlime.sh
EOF
chmod +x runlime
That will create a script file called runlime. Just make a link on your desktop to the runlime file to get it to run.
 
Old 05-15-2002, 06:56 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Are my questions that easy, or have you experienced the same problems as me? Thanks again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Link to old desktop - Gnome satimis Fedora - Installation 0 07-27-2004 11:46 AM
Non functional /mnt/hd link on desktop andrew_k Linux - Distributions 0 05-23-2004 04:54 AM
Modem link to desktop Pedroski Linux - Networking 1 01-03-2004 10:44 AM
mount NTFS with desktop link Machinegun Linux - General 3 08-23-2003 11:29 AM
Link on desktop adcripps Linux - Newbie 5 03-03-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration