Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing stdout and stderr
#4
By which, I was trying to make sure you were talking about the stdout/stderr of the python process and not of some calling shell or called subprocess.

Is the console still getting the data? If not, then the redirection has worked. Need to figure out why it's not being written. Have you tried with unbuffered output (like running with -u or putting a flush into the print() function?)
Reply


Messages In This Thread
changing stdout and stderr - by Skaperen - Nov-30-2020, 03:19 AM
RE: changing stdout and stderr - by bowlofred - Nov-30-2020, 03:54 AM
RE: changing stdout and stderr - by Skaperen - Nov-30-2020, 05:46 AM
RE: changing stdout and stderr - by bowlofred - Nov-30-2020, 07:35 AM
RE: changing stdout and stderr - by Skaperen - Dec-02-2020, 08:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [subprocess] Why stdout sent to stderr? Winfried 3 592 Jan-26-2024, 07:26 PM
Last Post: snippsat
  Performance options for sys.stdout.writelines dgrunwal 11 3,346 Aug-23-2022, 10:32 PM
Last Post: Pedroski55
  stderr redirect to file fmr300 2 3,729 Apr-03-2021, 01:31 AM
Last Post: fmr300
  Get stdout of a running process yok0 0 3,144 Aug-20-2020, 10:12 AM
Last Post: yok0
  connot write to sys.stderr anne 7 2,964 Jul-31-2020, 12:39 AM
Last Post: millpond
  how to output to stderr from inside a generator? Skaperen 2 1,886 Mar-03-2020, 03:17 AM
Last Post: Skaperen
  will with sys.stdout as f: close sys.stdout? Skaperen 9 4,788 Nov-03-2019, 07:57 AM
Last Post: Gribouillis
  Add stdout to text file maxtimbo 3 3,248 Feb-05-2019, 12:53 AM
Last Post: maxtimbo
  stdout buffering Skaperen 5 4,841 Jun-12-2018, 06:14 AM
Last Post: Skaperen
  stdout Skaperen 0 2,703 Mar-19-2018, 01:23 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020