how to use xdrlib

2010-08-22 Thread Alan Wilter Sousa da Silva
Hi there, I am trying to understand how xdrlib works as I want to read files in this format. The problem is I don't much about xdr (although I read http://docs.python.org/library/xdrlib.html and RFC 1832). Another problem is I don't know how the file I want to read was encoded. So when I do

Re: please, help with python 3.1

2010-08-03 Thread Alan Wilter Sousa da Silva
Ok: Here goes the code again and results: from __future__ import print_function import os, subprocess, signal def signal_handler( signum, frame ): print( PID: %s % pid ) print( Timed out! Process %s killed, max exec time (%ss) exceeded % (pid, timeTol ) ) os.kill( int( pid ), 15 )