def myprint(message, id='client'):
now = time.strftime("%H:%M:%S", time.localtime())
print("* {now} ({id}) -- {message}".format(**locals()))
def myprint(message, id='client'):
now = time.strftime("%H:%M:%S", time.localtime())
print("* {now} ({id}) -- {message}".format(**locals()))
myprint("ip route show", id=id)
subprocess.call(['ip', 'route', 'show'])
myprint("ip route show", id=id)
subprocess.call(['ip', 'route', 'show'])
myprint("==================== tcptest.py server", id='server')
show_network_status(id='server')
myprint("==================== tcptest.py server", id='server')
show_network_status(id='server')