Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Program Execution

This is a discussion on Program Execution within the C and C++ forums, part of the Software Development category; Is it possible to run another program say program2 from a program say program1 in C? If so can someone suggest me a best and easy way for achieving this?...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 07-23-2006
Contributing Member
 
Join Date: May 2006
Posts: 88
Thanks: 0
Thanked 10 Times in 9 Posts
norman is on a distinguished road
Program Execution

Is it possible to run another program say program2 from a program say program1 in C? If so can someone suggest me a best and easy way for achieving this?
Reply With Quote
The Following User Says Thank You to norman For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-31-2006
Contributing Member
 
Join Date: May 2006
Posts: 73
Thanks: 0
Thanked 6 Times in 6 Posts
joel is on a distinguished road
Executing a Program from another Program

I have a C program and I wanted to invoke or execute another C program from the first C program. Is there any option in C language for doing this? What is the command used for this?
Reply With Quote
  #3 (permalink)  
Old 07-31-2006
Junior Member
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
amar_win is on a distinguished road
Re: Executing a Program from another Program

you must have the appropriate Library to do this
Reply With Quote
  #4 (permalink)  
Old 08-03-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Robert is on a distinguished road
Re: Executing a Program from another Program

What is the appropriate library one must have to do this and how can this be achieved? Can you kindly brief on this.
Reply With Quote
  #5 (permalink)  
Old 10-04-2006
Junior Member
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
abas_ricky is on a distinguished road
Re: Executing a Program from another Program

can i have a name for the library?!
Reply With Quote
  #6 (permalink)  
Old 11-12-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 52
Thanks: 0
Thanked 2 Times in 2 Posts
Bessie is on a distinguished road
Re: Program Execution

If the C program is run in a UNIX operating system then you can use the exec, execl, execv,execle, execve, execlp, execvp functions to invoke another program from within a C program.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Side by Side Execution of multiple versions Beena ASP.NET 2 06-04-2008 09:49 AM
Knowledge about Program ID in Cobol program RyanJames MainFrame 2 02-14-2008 09:32 AM
Segmentation Fault in C program RyanJames C and C++ 3 01-28-2008 12:53 AM
Easiest Certification Program fred Certification 3 01-04-2007 11:54 AM
Achieve Scalability in Program RyanJames C and C++ 3 12-15-2006 02:08 PM


All times are GMT -4. The time now is 05:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved