LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-18-2005, 02:20 AM   #1
aakanksh_c
LQ Newbie
 
Registered: Sep 2005
Location: bangalore,india
Posts: 4

Rep: Reputation: 0
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!
 
Old 09-18-2005, 05:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
execute exe file mtitu11 Linux - General 2 09-12-2005 06:25 PM
require program that able to run *.exe in linux henrylam Linux - Newbie 1 05-24-2004 07:26 AM
How to get .exe to execute in linux stardog2112 Linux - Newbie 2 11-18-2003 11:03 PM
can't execute the .exe and .tar.gz files Vieux Linux - General 12 12-01-2002 06:36 PM
want to execute a php file in a c++ program Mr_ss Programming 1 10-10-2001 04:15 PM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration