Top "Stdout" questions

The standard output stream (stdout) is the stream where a program writes its output data.

Capture program stdout and stderr to separate variables

Is it possible to redirect stdout from an external program to a variable and stderr from external programs to another …

windows powershell command-line stdout stderr
How to log output in bash and see it in the terminal at the same time?

I have some scripts where I need to see the output and log the result to a file, with the …

linux bash logging stdout stderr
Interactive input/output using Python

I have a program that interacts with the user (acts like a shell), and I want to run it using …

python subprocess stdout stdin interactive
Writing to stdin and reading from stdout (UNIX/LINUX/C Programming)

I was working on an assignment where a program took a file descriptor as an argument (generally from the parent …

c unix stdout stdin read-write
How to redirect stdout and stderr to logger in Python

I have a logger that has a RotatingFileHandler. I want to redirect all Stdout and Stderr to the logger. How …

python logging python-3.x stdout
How to capture stdout/stderr with googletest?

Is it possible to capture the stdout and stderr when using the googletest framework? For example, I would like to …

c++ unit-testing stdout stderr googletest
In Go, how do I capture stdout of a function into a string?

In Python, for example, I can do the following: realout = sys.stdout sys.stdout = StringIO.StringIO() some_function() # prints to …

go stdout
Redirecting stdio from a command in os.system() in Python

Usually I can change stdout in Python by changing the value of sys.stdout. However, this only seems to affect …

python stdout stdio os.system
How can a process intercept stdout and stderr of another process on Linux?

I have some scripts that ought to have stopped running but hang around forever. Is there some way I can …

linux stdout
stdout and need to flush it C++

I have some C++ code that uses cout statements for debug purposes and for some reason I can't get all …

c++ stdout flush