Solved

executables

Posted on 2002-04-26
1
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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