0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
~1K People Reached
About Me
Consultant
Favorite Forums
4 Posted Topics
Re: [code=python] import re snmpdata = open(snmpwalk_output) patt = re.compile(r"(\.\d+)+ = [A-Z]+\:") out = [ d for d in snmpdata if patt.match(d) ] outfile = open("z.txt","w") outfile.write('\n'.join(out)) outfile.close() [/code] | |
Re: Is this Python code? a^b is *not* pow(a,b) - you want a**b. | |
Re: Your import is flawed - try "from math import sqrt" -- Paul | |
Re: Or just use XP zip compression - right click on the folder, and select Send To/Compressed Folder. XP wont unzip this thing, and neither will Python's zipfile module. -- Paul |
The End.