On Thursday, November 8, 2012, Alejandro Weinstein wrote:
> If you are in a Linux machine, you can use `inotify`: "Inotify (inode
> notify) is a Linux kernel subsystem that acts to extend filesystems to
> notice changes to the filesystem".
>
> It seems that there are a few option to use this from
If you are in a Linux machine, you can use `inotify`: "Inotify (inode
notify) is a Linux kernel subsystem that acts to extend filesystems to
notice changes to the filesystem".
It seems that there are a few option to use this from Python:
http://pyinotify.sourceforge.net/
http://code.activestate.
Hi,
You could use the time module.
import time
while 1:
time.sleep(5) # freezes for 5 s
update plot
This should be less CPU consuming ...
lpmp
On Thu, Nov 8, 2012 at 9:41 AM, francesco oteri
wrote:
> Hi,
> what about opening-closing the file every now and then, for example ev
Hi,
what about opening-closing the file every now and then, for example every
5seconds?
you can do it using the function time(). It gives you the amount of time
since I don't kno when,
but you can count how many seconds are left using:
a=time()
while 1:
b=time()
left= b-a
if left =