By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

system call

P: n/a
Hi,

from my C++ program I invoke some binaries by
"system( COMMAND )".
Some of the binaries need couple of times to finish their execution
and create at the end some files which are required by some binaries
I invoke subsequently with "system".

How does my C++ program handle that situation. Does it wait till the
first system call is finished and than continues or does it invoke the
binaries without bothering about the state of the predecessors?

Thank you
Chris
Sep 27 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Christian Christmann <pl*****@yahoo.de> wrote in news:4339d749$0$26203
$9*******@newsread2.arcor-online.net:
Hi,

from my C++ program I invoke some binaries by
"system( COMMAND )".
Some of the binaries need couple of times to finish their execution
and create at the end some files which are required by some binaries
I invoke subsequently with "system".

How does my C++ program handle that situation. Does it wait till the
first system call is finished and than continues or does it invoke the
binaries without bothering about the state of the predecessors?


As I recall... system() waits for the command to complete, and returns the
"error code" from the call. So if your command outputs some files, those
files will exist by the time system() returns.
Sep 28 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.