Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- import socket
- import sys
- import os
- myFile= open( "a.log", "w", 0 )
- sys.stdout=myFile
- from multiprocessing import Queue
- q = Queue()
- q.put('d')
- print("fd\n")
- //
- #!/usr/bin/python
- import time
- offset = 0
- while True:
- infile=open("./log.txt")
- infile.seek(offset)
- for line in infile:
- print line // do something
- offset=infile.tell()
- infile.close()
- time.sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement