Top "Stdout" questions

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

Force line-buffering of stdout when piping to tee

Usually, stdout is line-buffered. In other words, as long as your printf argument ends with a newline, you can expect …

unix buffer pipe stdout tee
How to use \r to print on same line?

I have made a downloader: #!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function, …

python python-3.x stdout carriage-return
How do you capture stderr, stdout, and the exit code all at once, in Perl?

Is it possible to run an external process from Perl, capture its stderr, stdout AND the process exit code? I …

perl stdout exit-code
How do I check if stdin has some data?

In Python, how do you check if sys.stdin has data or not? I found that os.isatty(0) can not …

python redirect stdout stdin
How to set sys.stdout encoding in Python 3?

Setting the default output encoding in Python 2 is a well-known idiom: sys.stdout = codecs.getwriter("utf-8")(sys.stdout) This wraps …

python unicode python-3.x stdout
How to remove last character put to std::cout?

Is it possible on Windows without using WinAPI?

c++ stdout cout
How can I run an external command and capture its output in Perl?

I'm new to Perl and want to know of a way to run an external command (call it prg) in …

perl stdout stderr
Get output from a Paramiko SSH exec_command continuously

I am executing a long-running python script via ssh on a remote machine using paramiko. Works like a charm, no …

python ssh stdout paramiko interactive
Redirect stdout pipe of child process in Go

I'm writing a program in Go that executes a server like program (also Go). Now I want to have the …

go stdout command-line-interface
Silence the stdout of a function in Python without trashing sys.stdout and restoring each function call

Is there a way in Python to silence stdout without wrapping a function call like following? Original Broken Code: from …

python stdout