I have a question about c++.
I want to use anonymous pipe repeatedly execute the command.
But it only can only execute a command.
I want it to perform the first command, and then use the first execution of the command to create environment, perform the second command.
For example:
adb shell //first command su //second command
The child process execution after the first command, it will be over, unable to continue with the second.
How can I let the child not to close and continue to execute the command?
The parent is a console application.
Posting on MSDN in English for the first time, there is an error please forgive me.
Who can help me? Thank you very much!