io-redirection
VC++ ReadFile Unexpectedly Blocks While Reading a Closed Anonymous Pipe
I am trying to create a child process running any exe command and redirect all its stdio and stderr to my parent process through an anonymous pipe. But when my parent process tries to do a ReadFile()[详细]
2023-04-12 23:12 分类:问答How would I capture a process's input text and output text into a file as it would appear when run from a shell
I need to test some programs by running them and verifying the output, and the entire test data shall be copied into a report. By entire test data, I mean both the output (stdout) of the program and t[详细]
2023-04-12 05:38 分类:问答In a WinForm process, how to detect when a command line child process is demanding input?
In a WinForm application that calls a third-party command line tool, there may be a time when the tool is expecting user input, such as asking if it should overwrite a file:[详细]
2023-04-06 04:29 分类:问答How do I create a shorthand for bash output redirection?
I\'ve been running a lot of similar commands lately, e.g. python foo.py some args 2>&1 | tee foo.log[详细]
2023-04-05 17:12 分类:问答How to echo "2" (no quotes) to a file, from a batch script?
How do I 开发者_StackOverflowecho the number 2 into a file, from a batch script? This doesn\'t work:[详细]
2023-03-31 15:15 分类:问答I want to create a minifilter driver to transparently redirect disk i/o, but I'm having trouble getting started
A project I\'m working on at the moment requires the implementation of a copy-on-w/m mechanism which will be used to redirect disk i/o in a similar manner to Deep Freeze or Sandboxie, on Windows XP. I[详细]
2023-03-30 01:34 分类:问答What does the following do: (some command) > file1 file2
I\'m re-writing an ancient and pretty broken build and ran across a rule with something in it I\'ve never seen before.It looks like this:[详细]
2023-03-29 03:23 分类:问答How do I redirect output to a file with CreateProcess?
I tried using CreateProcess to run a simple command like hg > test.txt. I tried running the string as a whole (as opposed to separating it into an application name and its parameters). Why does Cre[详细]
2023-03-27 10:14 分类:问答Duplicate console output of self process
I\'d like to redirect my process console output to file, while mantaining the utility of displaying it on the curretnly attached console.[详细]
2023-03-27 08:29 分类:问答How to spawn a child process and redirect its STD IO using named pipes?
I need to spawn a child process and talk to it over STD IO. I want to use named pipes to do so. The application that I am writing (which spawns the process) is in C++.[详细]
2023-03-26 00:39 分类:问答