Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 06-10-2004, 08:11 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
executing file

I am just new, i am using mandrake 10, and have started writing some c++ programs. My files compile fine with no errors, however when i try executing the program ive written it just says bash: exe: command not found. I am trying to use a.out to run my file, please tell me how to run my file. Thanks Heaps Beginner
Old 06-10-2004, 08:24 PM   #2
Registered: Aug 2002
Posts: 13,997

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
Unlike windows, bash only searches the PATH environment not the current working directory for a command. You can either use the entire path or ./ or add the current working directory to the PATH:


./ is a short for current working directory i.e.

To add current working directory to your path:
Old 06-10-2004, 08:28 PM   #3
LQ Newbie
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks Michealk
I appreciate your help greatly.


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 a .deb file Wolvenmoon Debian 1 08-18-2005 10:50 PM
Executing a file in wine uphu Linux - Games 3 12-10-2004 04:18 PM
executing a downloaded file? GiaCo Linux - Newbie 6 10-25-2004 09:35 AM
Continue executing file after you logout digitalgravy Linux - Newbie 5 10-06-2004 08:28 PM
executing a file pantera Programming 1 05-25-2004 01:06 AM

All times are GMT -5. The time now is 02:41 PM.

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