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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App.exe in Unix

Status
Not open for further replies.

scecilia

Programmer
Jul 8, 2002
35
US
Hello,

I need to write a little C/C++ program that launches an executable and controls it (be able to identify if it is running, be able to kill it if necessary). I have done this already in Windows with ViusualC++.

Question, I have an executable to test (Butterfly.exe) that does not execute in Unix, the error I get:

/bin/sh: Butterfly.exe: cannot execute

Do you know how can I get this to execute (it does in windows)? And if not, can you suggest me an .exe that can be useful for my purposes?

Any help is appreciated, I am not a Unix person, unfortunately.


 
You will need to recompile your C/C++ code in unix.
Assuming you are able to do this your resulting program then needs to have the execute permissions set.
chmod +x butterfly.exe

Note: filename extensions mean nothing in unix.
 
Hello,

Changing modes does not work. I still get the same error. Could that be because it is a Windows app? Basically, it is a little window which displays a butterfly flying. Is there any other .exe I can use in Unix that will give me a hint that is executing?

Thanks,
--Cecilia.
 
see previous post about recompiling.

Binary executable files are different for every operating system (with some minor exceptions).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top