摘要: #!/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... 阅读全文
posted @ 2016-07-19 16:10 小秒 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 客户端 #!/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): ... 阅读全文
posted @ 2016-07-19 15:11 小秒 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 服务器端: 客户端 阅读全文
posted @ 2016-07-19 11:04 小秒 阅读(1109) 评论(0) 推荐(0) 编辑