Top "Stdout" questions

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

"subprocess.Popen" - checking for success and errors

I want to check if a subprocess has finished execution successfully or failed. Currently I have come up with a …

python python-3.x subprocess stdout stderr
redirect stdout/stderr to a string

there has been many previous questions about redirecting stdout/stderr to a file. is there a way to redirect stdout/…

c++ c stdout stderr
Temporarily Redirect stdout/stderr

Is it possible to temporarily redirect stdout/stderr in Python (i.e. for the duration of a method)? Edit: The …

python redirect stdout stderr
How to capture stdout output from a Python function call?

I'm using a Python library that does something to an object do_something(my_object) and changes it. While doing …

python stdout capture
Piping output of subprocess.Popen to files

I need to launch a number of long-running processes with subprocess.Popen, and would like to have the stdout and …

python subprocess stdout
How to make output of any shell command unbuffered?

Is there a way to run shell commands without output buffering? For example, hexdump file | ./my_script will only pass …

stdout buffering
how to redirect STDOUT to a file in PHP?

The code below almost works, but it's not what I really meant: ob_start(); echo 'xxx'; $contents = ob_get_contents(); …

php stdout stdin
Capture both stdout and stderr in Bash

I know this syntax var=`myscript.sh` or var=$(myscript.sh) Will capture the result (stdout) of myscript.sh into …

bash stream pipe stdout stderr
Why is printing to stdout so slow? Can it be sped up?

I've always been amazed/frustrated with how long it takes to simply output to the terminal with a print statement. …

python linux printing stdout tty
Redirect Python 'print' output to Logger

I have a Python script that makes use of 'Print' for printing to stdout. I've recently added logging via Python …

python logging stdout