Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing C Programme

Status
Not open for further replies.

tapks

IS-IT--Management
Sep 6, 2001
72
IN
Hi!

I have installed Red Hat Linux 7.1 in my PC. Even though no errors are coming during compilation of the C programme I am unable to execute the same.

Can anybody let know the solutions for it? Is there any setting to be made ?

Do let me know at the earliest.

Thankx in advance.

Tapks
 
Yes. It shows the following error.

bash: out: command not found.


 
linux does not include the current working directory in the path so if you are in the same directory as your program you will either need to './your_app' or '/full/path/to/your_app' (without quotes)

Hope this helps [smurf]
01101000011000010110010001110011
 
depending upon the type of ur shell, edit the profile,
for example if u are using the bash shell, edit bash_profile
in ur home directory
PATH=$PATH:.

this will allow u to execute any executable that is there in
the currenct working directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top