[pyar] Empiezo una implementación: tail -f like software

Eliseo Ocampos roskoff en gmail.com
Mar Ago 31 16:07:23 ART 2010


2010/8/31 Eliseo Ocampos <roskoff en gmail.com>:
> Juanjo,
>
>   Probé el script, así como está me tira este error:
>
> [G:eocampos/Desktop]|56> python bee-1.py log.txt
> Process Process-1:
> Traceback (most recent call last):
>  File "C:\Python27\lib\multiprocessing\process.py", line 232, in _bootstrap
>    self.run()
>  File "C:\Python27\lib\multiprocessing\process.py", line 88, in run
>    self._target(*self._args, **self._kwargs)
>  File "G:\eocampos\Desktop\bee-1.py", line 7, in read_file
>    fd.seek(0,2)
> ValueError: I/O operation on closed file
>
> Al parecer dentro del otro proceso no reconoce o se cierra fd, probé
> pasándole el nombre del archivo a read_file y abrirlo ahí dentro ya
> que ahí es donde lo estamos leyendo.
>
> Te paso el archvo modificado, fijate en la linea 7 y 34
>
> Saludos!
>
> Eliseo.
>
> P.D.: Estoy en un Windows Vista con Python 2.7
>

Va el archivo ahora! Perdón!

Eliseo.
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: bee-modificado.py
Type: application/octet-stream
Size: 750 bytes
Desc: no disponible
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20100831/a78f10a7/attachment.obj>


More information about the pyar mailing list