Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

About anonymous pipe and execute the command

$
0
0

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!






Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>