Dec-07-2023, 06:32 PM
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.
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.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.