in other words, the last two lines of your function should be: statinfo = os.stat(filename) return child_pty.read(statinfo.st_size) -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com