@@ -0,0 +1,230 @@
+%0Adef run_cmd(cmd):%0A    p = Popen(cmd, shell=True, stdout=PIPE)%0A    output = p.communicate()%5B0%5D%0A    return output%0A%0Adef mac_chk():%0A    cmd = %22ifconfig -a %7C grep %5Eeth %7C awk '%7Bprint $5%7D'%22%0A    macAddr = run_cmd(cmd)%0A    return macAddr%0A

Create publicip.py