LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-10-2004, 08:11 PM   #1
dontknowshit
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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,530

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
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:

/path/to/executable

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

To add current working directory to your path:
http://www.linuxquestions.org/questi...bash_profile+.
 
Old 06-10-2004, 08:28 PM   #3
dontknowshit
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks

Thanks Michealk
I appreciate your help greatly.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 05:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration