Hey guys,<br><br>I have this simple code and i cant seem to get it to run.<br>here is the code.<br><br><br>from os import *<br>import re<br><br>hostname =raw_input("Host name : ") or '<unknown>'<br>
mac_addr =input("Mac address : ")<br><br>filename='/etc/dhcpd.conf'<br>fh=open(filename)<br><br>m = re.match(hostname,fh.readlines())<br>if m!=None:<br> m.group()<br><br>
<br>Here is the error I get when i try to run the code<br><br><br>monkeysee% python sys_wireless.py<br>Host name :<br>Mac address : 1234567<br><span><span style="color: rgb(255, 102, 0);">Traceback (most recent call last):
</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);"> File "sys_wireless.py", line 8, in ?</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);"> fh=open("/etc/dhcpd.conf","r")
</span><br style="color: rgb(255, 102, 0);"><span style="color: rgb(255, 102, 0);">TypeError: an integer is required</span><br></span><br><br><br>I dont know what the issue is?<br><br>any hints ?<br><br><br><br>