LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2004, 10:38 AM   #1
Vnet1
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Question Executing files in a terminal by default


Hi im new to linux and KDE.

Im wondering why I can only exec a file from the terminal by typing "./myprog". Whenever I type in "myprog" it says the command is not found. Can I change this? Also can I change what happens when a file is double clicked on the KDE desktop to automatically run in a terminal window.
 
Old 03-24-2004, 10:52 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,251

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Seems this question has been popping up lately.
./ is a shortcut for current working directory.

BASH does not search the current working directory first. If your current working directory is not in your environment path then you will get a command not found error.

You can add the a directory to your path in the bashrc file.
 
Old 03-24-2004, 01:54 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
"can I change what happens when a file is double clicked on the KDE desktop to automatically run in a terminal window"

You can probably change the command in the icon's properties (i'm not an icon person, so i'm a bit rusty here). If the command is originally "mutt" you'd change it to "aterm -e mutt"
This is only if the icon is a link, though (which i assume it is)...if it's the actual program file you'd probably need to adjust the file associations for that specific application.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executing shell script in terminal directly with a double click kushalkoolwal Programming 15 11-26-2012 03:32 PM
executing a program in new terminal? kashifbilal Programming 7 04-26-2004 05:52 AM
Executing programs from a terminal window subzero0 Linux - General 0 09-26-2003 01:36 PM
help executing files safil Linux - Newbie 7 09-03-2003 02:51 AM
executing files jiggaracci Linux - General 8 10-13-2002 02:38 PM


All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration