Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

stderr

Temporarily Redirect stdout/stderr

August 20, 2022 by Magenaut

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

Categories Python, Q&A Tags python, redirect, stderr, stdout Leave a comment

How to print to stderr in Python?

August 19, 2022 by Magenaut

There are several ways to write to stderr:

Categories Python, Q&A Tags printing, python, stderr, zen-of-python Leave a comment

Python read from subprocess stdout and stderr separately while preserving order

August 17, 2022 by Magenaut

I have a python subprocess that I’m trying to read output and error streams from. Currently I have it working, but I’m only able to read from stderr after I’ve finished reading from stdout. Here’s what it looks like:

Categories Python, Q&A Tags python, stderr, stdout, subprocess Leave a comment

stderr gets flushed before stdout, when using file logger

August 10, 2022 by Magenaut

My python code:

Categories Q&A, Unix & Linux Tags logs, nohup, python, stderr Leave a comment

suppress stderr messages in a bash script

August 9, 2022 by Magenaut

Consider the following (slightly silly) script name ‘test1.sh’:

Categories Q&A, Unix & Linux Tags bash, shell-script, stderr Leave a comment

What prevents stdout/stderr from interleaving?

August 9, 2022 by Magenaut

Say I run some processes:

Categories Q&A, Unix & Linux Tags osx, output, shell, stderr, stdout Leave a comment

How (and why) use stderr for both reading and writing?

August 9, 2022 by Magenaut

According to this answer by schily, less reads navigation commands from stderr if it’s not able to open /dev/tty.

Categories Q&A, Unix & Linux Tags pipe, stderr Leave a comment

Unix systems without /dev/stdin, /dev/stdout, and /dev/stderr?

August 8, 2022 by Magenaut

The system may provide non-standard extensions. These are features not required by POSIX.1-2008 and may include, but are not limited to: […] Additional character special files with special properties (for example, /dev/stdin, /dev/stdout, and /dev/stderr)

Categories Q&A, Unix & Linux Tags posix, stderr, stdin, stdout Leave a comment

Inconsistency of stderr redirection between tcsh and other shells

August 8, 2022 by Magenaut

I’m running into issues with redirection in tcsh.

Categories Q&A, Unix & Linux Tags io-redirection, stderr, tcsh Leave a comment

How can I capture stdout/stderr in a file but still see it in my console?

August 8, 2022 by Magenaut

I’m using bash script on AMazon Linux. When I want to redirect stderr and stdout to a file, I can run

Categories Q&A, Unix & Linux Tags shell, shell-script, stderr, stdout Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress