473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Please tell me ... similar commands of system()

Hi,

My task is to design one program in c-language, and my collegue's is another program to design and do some other functionality. I need to execute my collegue's program with out directly copying the code.

So, I am using system() command to execute his program which is working fine but, I need to use some of the intermediate values of my collegue's program but system command is returning only success or failure.

please tell me is there any commands similar to the system and which I can use the intermediate values of one program into another.

I stuck in the middle of my project could any please help me with your expertise...

Thanks & Regards,
Nov 27 '07 #1
3 1266
weaknessforcats
9,208 Expert Mod 8TB
Is this Windows? You might look up CreateProcess().
Nov 27 '07 #2
gpraghuram
1,275 Expert 1GB
Hi,

My task is to design one program in c-language, and my collegue's is another program to design and do some other functionality. I need to execute my collegue's program with out directly copying the code.

So, I am using system() command to execute his program which is working fine but, I need to use some of the intermediate values of my collegue's program but system command is returning only success or failure.

please tell me is there any commands similar to the system and which I can use the intermediate values of one program into another.

I stuck in the middle of my project could any please help me with your expertise...

Thanks & Regards,
Is your clooeague's module outputting something?
If so then you can re-direct those values to a file and read it after the execution of the system() call.
Raghuram
Nov 28 '07 #3
Assume ur Module is X,ur colegues module us Y
let his module run as a seprate process, and urs also a seprate process,
if you are depend on his outputs, you create, ur process does ur work and go for a sleep for some time

when the module Y finishes its processing, let that process write into a pipe (by using pipe () ), u can use a signal on this pipe in such a way that when ever some thing is avilable on this pipe the signal will invokie u from sleep

or u can do a blocked read

Hi,

My task is to design one program in c-language, and my collegue's is another program to design and do some other functionality. I need to execute my collegue's program with out directly copying the code.

So, I am using system() command to execute his program which is working fine but, I need to use some of the intermediate values of my collegue's program but system command is returning only success or failure.

please tell me is there any commands similar to the system and which I can use the intermediate values of one program into another.

I stuck in the middle of my project could any please help me with your expertise...

Thanks & Regards,
Nov 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ravindran Pandian | last post by:
I have to add a "ATEStudio" popup menu in the VS IDE Menu Bar as below and the menu item "New Test Program" is having submenus like ( Csharp,VisualBasic,ManagedC++). ATEStudio >>NewTestProgram...
3
by: ntexchange05 | last post by:
I am trying to learn asp.net and build a site and i am using web matrix and vb.net. I have installed the MSDE on my windows xp pro, i am using the book calledbeginning dynamic websites with...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
9
by: Synapse Syndrome | last post by:
Hi I've been given what I am told is a PHP script to be used on my server. I do not know any PHP. I am trying to use a feature of a program called ArchiCAD. This feauture allows CAD drawing...
1
by: beetle17 | last post by:
Plaintext: a  n i c e  d a y Key: -3 Ciphertext: X  k f Z b  a X v Cipher will accept commands from the user and perform the operations required by the commands. There are three different...
11
by: intheend | last post by:
respected i have launch a application using the php . like nmapfe or ethreal but the basic functions like system and exec is not workiking ... the safe mode is also off .. please tell me the way to...
0
by: sajithamol | last post by:
Can anyone please tell me how to implement AT commands in .NET for sending and receiving SMS through GSM modem/mobile connected to a PC.
1
by: pineapple | last post by:
On Nov 8, 12:24 pm, "Chris Rebert" <c...@rebertia.comwrote: Weird! Doesn't work at all on my system (WinXP, Python 2.5). Nope, that was the actual code - in fact it was the whole program.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.