摘要:
一:批量执行命令 1 [root@80sa script]# cat ssh.py 2 #!/usr/bin/env python 3 #coding:utf-8 4 5 import paramiko 6 7 file = open("iplist.txt","r") 8 all = file.readlines() 9 cmd = raw_input("Please input cmd:")10 for ip in all:11 print ip,12 port = 5102213 username = "zhangly 阅读全文
posted @ 2013-07-11 23:58
study-notes
阅读(542)
评论(0)
推荐(0)
摘要:
直接上代码: 1 [root@web2 zhangly]# cat wsgi.py 2 #!/usr/bin/env python 3 #coding:utf-8 4 from wsgiref.simple_server import make_server 5 import os 6 7 def application(environ,start_response): 8 response_body = 'The request method was %s' %environ['REQUEST_METHOD'] 9 status = '200 OK 阅读全文
posted @ 2013-07-11 23:52
study-notes
阅读(355)
评论(0)
推荐(0)

浙公网安备 33010602011771号