Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

executables

Posted on 2002-04-26
1
Medium Priority
?
259 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 150 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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 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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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