• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

execution

how can i make .exe files in linux?
0
jfeltus
Asked:
jfeltus
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Can you explain more specifically what you are trying to do?  Linux determines if a file is executable by the permissions on the file - rwx - where r=read, w=write, x=executable.  Assuming you have a file you can be executed, try chmod'ing the file to 755 -

chmod 755 file

See http://www.zzee.com/solutions/chmod-help.shtml
0
 
wesly_chenCommented:
Hi,

# gcc test.c -o test.exe
# chmod +x test.exe
# ./test.exe  <=== run test.exe

or
# g++ test.cpp -o test.exe
# chmod +x test.exe
# ./test.exe

Wesly
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
understand - you don't have to call it an .exe - you could call it test.joe if you wanted to.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now