retrieving results of system() call from stdout?
retrieving results of system() call from stdout?
- Subject: retrieving results of system() call from stdout?
- From: "David M. Cotter" <email@hidden>
- Date: Thu, 22 Mar 2007 17:54:30 -0700
i'm writing a C++ GUI app that makes use of the command line to do
somthing.
say i've got a command line utility "foo" that takes a whatever and
ouputs a modifided whatever, but while it's processing it gives
feedback like:
foo working: 20%
foo working: 37%
foo working: 49%
foo working: 63%
foo working: 75%
etc etc.
how can i:
1) make system() return immediately (it t as simple as putting a "&"
at the end of the string?)
2) *read* from stdout or get notified when a new string is pushed to it?
3) *read* from stderr to see if something bad happened?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden