Solved

executables

Posted on 2002-04-26
1
242 Views
Last Modified: 2011-09-20
how do i run the executables, sorry, but under windows i can type [filename] on the command prompt but on the shell can i do the same thing

$ [filename]

after compilation.
0
Comment
Question by:ogom
1 Comment
 
LVL 4

Accepted Solution

by:
IainHere earned 50 total points
ID: 6970832
yes, but only if the have the current working directory in your PATH environment setting.

$ ./[filename]

and it says "look in the current directory".  That will work.  Another problem might be that the file is not marked as being executable (Linux does not use *.exe for this purpose).  If you're still having problems, then this can be fixed by

$ man chmod
to find out what you're doing, then
$ chmod a+x ./[filename]

To add the current working directory to your path, try
PATH=.:$PATH


0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now