How to redirect output from reading a bash script in c++?

Use popen instead of system. The function popen will give you a FILE * you can read from. FILE *script = popen("myfile.Sh", "r"); while (fgets(line, LENGTH, script)) { /* ... */ } pclose(script).

Thx – user840718 Oct 9 at 10:23 @user840718 With this method you can capture the output of "myfile. Sh". I don't know about the clients on your network :-) – cnicutar Oct 9 at 10:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions