摘要:
#!/usr/bin/python #-*-coding:UTF-8-*- import time import os logdir='/data/log/nginx' nginxpath='XX/logs/nginx.pid' end_dir='/data/log/oldlog/' str = time.strftime('%Y%m%d') print str tar_conn1 = "/b... 阅读全文
摘要:
客户端 #!/usr/bin/env python # -*- coding:utf-8 -*- import socket from time import sleep ip_port = ('127.0.0.1',9999) b=0 while True: with open('1.txt','r') as f: for c,i in enumerate(f,1): ... 阅读全文
摘要:
服务器端: 客户端 阅读全文