Python Forum
what i would like to add to subprocess.Popen()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what i would like to add to subprocess.Popen()
#5
OK. i think that is what i wanted as chdir=. apparently my thinking gave it some other semantics as i scanned the documentation originally. this time it looks right. the future may still have a need for other settings. maybe they can be done in the parent or maybe not. best would be a function, maybe with args. then you can play dangerously, like root changing effective user (BTDT in C). for a current project, cwd= is good enough. it is a function to run a pipeline of commands, and i chose to use the same argument cwd= to be consistent with Popen() and maybe others.
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
RE: what i would like to add to subprocess.Popen() - by Skaperen - Aug-22-2023, 05:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pipe(s) in = subprocess.Popen() Skaperen 0 1,818 Feb-13-2021, 11:48 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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