Dec-12-2023, 06:15 PM
i've done execve() many times in my C programming. what i need to do in this little project is to invoke a command in the same process as the script invoking it. in Bash, this done by having "exec " in front of the command. i also need to direct its output to specific files. there is no such option in os.execve() to do such a redirection. i thought maybe some other method in some other module might have a "invoke in caller process" option in addition to ways to redirect. for now, i am doing the redirection using os.open() and os.dup2(). but this depends on file descriptors.
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.