Python Forum
setting STDOUT and/or STDERR
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting STDOUT and/or STDERR
#7
i want to have this more integrated so that the redirection is done by the script itself and minimize the number of files. of course, having all the steps needed to do the redirection done in a function or class method so it can be done in one line would be.

what i want to accomplish is how best to do in Python what i have done in Bash and/or C. in C it is trivial because STDOUT and STDERR are just file descriptors which can be changed.

classic redirection is done at command level where one adds on shell syntax when typing in a command or doing the same in a shell script. what i want is to integrate this so that the redirection is done in the script itself so that i don't have to type it in each time or add another script file.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
setting STDOUT and/or STDERR - by Skaperen - Dec-05-2023, 07:10 AM
RE: setting STDOUT and/or STDERR - by Gribouillis - Dec-05-2023, 10:14 AM
RE: setting STDOUT and/or STDERR - by DeaD_EyE - Dec-05-2023, 01:06 PM
RE: setting STDOUT and/or STDERR - by Gribouillis - Dec-05-2023, 03:20 PM
RE: setting STDOUT and/or STDERR - by DeaD_EyE - Dec-07-2023, 04:56 AM
RE: setting STDOUT and/or STDERR - by Gribouillis - Dec-07-2023, 06:21 AM
RE: setting STDOUT and/or STDERR - by Skaperen - Dec-07-2023, 06:32 PM
RE: setting STDOUT and/or STDERR - by Gribouillis - Dec-08-2023, 08:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  combining stdout and stderr Skaperen 1 1,855 Nov-01-2019, 07:06 AM
Last Post: Gribouillis
  capture stdout from child processes Skaperen 0 3,456 Oct-30-2019, 12:11 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