I am writing a simple shell-like program. I'm stuck on writing the pipeline part. (IE: program_A | program_B )
I'm assuming I need to use pipe(), but I'm unsure how to do this exactly.
program_A reads from stdin, then it write to a pipe? The other end of this pipe is read in by program_B (but program_B normally reads from stdin, so how do I redirect it without messing up program_A?). program_B then outputs to stdout.
Do I setup the pipe, let program_A run and output to the pipe, then start program_B (after redirecting stdin to the pipe)?
I used it yesterday to create an ISO, then I mounted it just to check the build number, and it was 26200.8653 which I couldn't find any info about, I knew the latest Patch Tuesday biuld was 26200.8655.
Can Confirm, this only appears to happen on Edge installed on Android, No issue on Chrome, Firefox, Samsung Browsers.
Android 16
Samsung OneUI 8.5
Newest Releases of Each Browser (Edge, Firefox, Chrome, Samsung Browser)
This happens both With and Without my VPN being active.
Yay, a forced new tab telling everyone edge just updated with a load of advertising in it twice as often as we currently get it. That'll never be abused. 😏
Question
dontocsata
I am writing a simple shell-like program. I'm stuck on writing the pipeline part. (IE: program_A | program_B )
I'm assuming I need to use pipe(), but I'm unsure how to do this exactly.
program_A reads from stdin, then it write to a pipe? The other end of this pipe is read in by program_B (but program_B normally reads from stdin, so how do I redirect it without messing up program_A?). program_B then outputs to stdout.
Do I setup the pipe, let program_A run and output to the pipe, then start program_B (after redirecting stdin to the pipe)?
Thanks!
Link to comment
https://www.neowin.net/forum/topic/845358-c-using-pipe/Share on other sites
3 answers to this question
Recommended Posts