Capturing program feedback... (not sure what to call it)
i'm working on a little project in kdevelop in c++
i need to know how to get the feedback from a system command to where i can use it. i'm not really sure what terminology i should be using here, forgive me.
what i mean is like if i ran said this:
system(/etc/rc.d/init.d/httpd start);
i need some way to get what it the program's output was in terminal, for example, if it couldn't do this for some reason like 'file not found' how could i get that file not found message and put it in, um..., a QString or something? So like i could do something like this:
feedbackBox->append(where-ever-i-get-the-feedback-from());
sorry if im unclear on what i want, i cant really help it...
any information on this subject line would be useful
thx in advance,
llama
|