LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to execute a .exe file in linux environment from a c program? (https://www.linuxquestions.org/questions/linux-general-1/how-to-execute-a-exe-file-in-linux-environment-from-a-c-program-364404/)

aakanksh_c 09-18-2005 01:20 AM

how to execute a .exe file in linux environment from a c program?
 
hi!

i am student working on a project to develop a shell!
i'm new to all this.
so please antbody help me out!

i just want to know how to execute a command or .exe file in linux from a
c or c++ program!

thanks from the bottom of my heart to those who answer to me!
thanks!

acid_kewpie 09-18-2005 04:26 AM

if you mean a win32 executable, then that's going to be by wine (or a commercial derivitive like crossover office). for running a normal linux command, you'd use system() of popen() among others.


All times are GMT -5. The time now is 02:27 PM.