Python Forum
Python tailing file or named pipe stalls after a while
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python tailing file or named pipe stalls after a while
#5
@nilsk123 Try using read()
with open(pipe_path) as fifo:
    print("FIFO opened")
    while True:
        data = fifo.read()
        if not data: # writer process closed the pipe
            break
        print(data)
Reply


Messages In This Thread
RE: Python tailing file or named pipe stalls after a while - by Gribouillis - Jul-27-2018, 07:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,644 Nov-09-2023, 10:56 AM
Last Post: mg24
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,583 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  Convert Excel file into csv with Pipe symbol.. mg24 4 1,404 Oct-18-2022, 02:59 PM
Last Post: Larz60+
  Converted Pipe Delimited text file to CSV file atomxkai 4 7,136 Feb-11-2022, 12:38 AM
Last Post: atomxkai
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,669 May-06-2021, 05:39 AM
Last Post: throwaway34
  Duplex Named Pipe with Python Server and C# Clients raybowman 1 2,453 Dec-03-2020, 09:58 PM
Last Post: Gribouillis
  2 or more processes on the write end of the same pipe Skaperen 4 3,950 Sep-27-2020, 06:41 PM
Last Post: Skaperen
  STT: recognition connection failed: [Errno 32] Broken pipe GrahamBerends 0 5,187 Jul-18-2020, 11:00 PM
Last Post: GrahamBerends
  multiprocessing Pipe.poll very slow seandepagnier 0 2,397 Mar-09-2020, 03:10 AM
Last Post: seandepagnier
  ImportError: No module named pymysql - On Apache2 for Python 2.7 on Mac Tyrone 9 7,740 Jun-12-2019, 07:08 PM
Last Post: Tyrone

Forum Jump:

User Panel Messages

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