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
#2
As far as the first solution goes - file object opened for reading does not follow dynamic changes to the file content. You may store the last read position and reopen file and read from that position (readline will not work), but that will require some partial string management
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: Python tailing file or named pipe stalls after a while - by volcano63 - Jul-27-2018, 06:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Media Pipe Python Interfacing with MATLAB cmcreecc 1 155 May-30-2024, 07:23 AM
Last Post: TrentErnser
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,739 Nov-09-2023, 10:56 AM
Last Post: mg24
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,666 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  Convert Excel file into csv with Pipe symbol.. mg24 4 1,449 Oct-18-2022, 02:59 PM
Last Post: Larz60+
  Converted Pipe Delimited text file to CSV file atomxkai 4 7,214 Feb-11-2022, 12:38 AM
Last Post: atomxkai
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,863 May-06-2021, 05:39 AM
Last Post: throwaway34
  Duplex Named Pipe with Python Server and C# Clients raybowman 1 2,478 Dec-03-2020, 09:58 PM
Last Post: Gribouillis
  2 or more processes on the write end of the same pipe Skaperen 4 3,999 Sep-27-2020, 06:41 PM
Last Post: Skaperen
  multiprocessing Pipe.poll very slow seandepagnier 0 2,415 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,795 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