Python Forum
stdin input while copying from a process pipe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
stdin input while copying from a process pipe
#1
i would like to get some ideas of what tools to do this. i want a script to launch a child process that will be producing lots of out, such as the paths of file it is operating on. the user only needs to see a file path occasionally, like perhaps ever 6 seconds or every 20 seconds. what i want to do is have the parent read the pipe from the child and at the same time read the stdin terminal for the user typing in changes to that time interval. so the user, seeing a path being output every 6 seconds might type in 20[CR] and the parent changes to now copying one line of child output every 20 seconds. any suggestions other than select/poll?
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
stdin input while copying from a process pipe - by Skaperen - Jul-18-2019, 12:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  which exception do you get when you os.write() to a pipe that has nothing reading it? Skaperen 7 1,834 Jan-09-2023, 09:45 AM
Last Post: Gribouillis
  is stdin a console Skaperen 2 1,264 Feb-06-2022, 10:46 PM
Last Post: Skaperen
  pipe(s) in = subprocess.Popen() Skaperen 0 1,754 Feb-13-2021, 11:48 PM
Last Post: Skaperen
  re-open a Popen pipe in non-binary mode Skaperen 2 3,955 Jul-29-2019, 05:25 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