摘要: from multiprocessing import Pool import os,time def Foo(i): time.sleep(2) print("in process",os.getpid()) return i +100 def Bar(arg): print('-->exec done',arg,os.getpid()) if __na... 阅读全文
posted @ 2018-06-25 20:52 努力乄小白 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # This script run at 00:00 # The Nginx logs path logs_path="/data0/logs/nginx"#nginx存放日志路径 cd $logs_path#进入到nginx日志下面 mkdir -p ${logs_path}/$(date -d "yesterday" +"%Y%m")#创建日志日期目录 for l... 阅读全文
posted @ 2018-06-25 12:34 努力乄小白 阅读(736) 评论(0) 推荐(0) 编辑