pipe
Test if stdin has input for C++ (windows and/or linux)
I basically want to test if stdin has input (like if you echo and pipe it). I have found solutions that work, but they are ugly, and I like my solutions to be clean.[详细]
2023-03-23 08:12 分类:问答Check for EOF in NamedPipeClientStream
With C functions it is possible to check if t开发者_运维技巧he output side of a pipe is empty via _eof(pipeOut) and skip the read operation.[详细]
2023-03-23 01:59 分类:问答Hadoop pipes (wordcount) example failing (with hadoop 0.21.0)
I was trying out the simplistic word count example for hadoop pipes. Unfortunately it is erroring out with java.lang.NullPointerException and /usr/lib64/libstdc++.so.6: no version information availabl[详细]
2023-03-22 22:34 分类:问答`echo "asdf"` to a C program using pipes
Basically, I\'m trying to implement the following: echo \"asdf\" | ./a.out where ./a.out simply prints out \"asdf\"[详细]
2023-03-22 18:47 分类:问答Multiple pipes in C
I want to implement multi pipes in c so I can do something like this, where ||| means duplicate the stdin to N pipe commands):[详细]
2023-03-22 16:28 分类:问答Pipes between child processes in C
I\'ve seen this question before, but still a bit confused: how would I create communication between child 开发者_StackOverflow中文版processes of the same parent? All I\'m trying to do at the moment is[详细]
2023-03-22 15:31 分类:问答Perl as a batch-script tool - fully piping child processes?
Apologies if some of the terminology may be slighlty off here. Feel free to correct me if I use a wrong term for something.[详细]
2023-03-21 20:51 分类:问答bash - redirect specific output from 2nd script back to stdin of 1st program?
I have a little program, let\'s call it \"program\" by simplicity which has \"normal\" behaviour. It takes information from the stdin (normally typed in by the user in the keyboard) and prints out via[详细]
2023-03-21 18:35 分类:问答Redirect CMD.exe output to a pipe
Can I use CreateProcess (or ShellExecute, or any other means of invoking cmd.exe to run a batch script) and have all output redirected to a pipe owned by my process? How do I give the child cmd.exe pr[详细]
2023-03-21 06:59 分类:问答pipe, fork and shell commands in C
I am trying to reproduce the pipes in a shell. for example ls | sort At first I am trying the pipes but I can\'t get the parent to read the result of what the child has executed:[详细]
2023-03-20 11:04 分类:问答