#!/usr/bin/envpython#coding=utf-8importparamikoimporttime,datetime,threadingdefssh(ip,user,passwd,command):ssh=paramiko.SSHClient()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())try:ssh.connect(ip,port=16333,username=user,password=passwd)exceptpar..
分类:
编程语言 时间:
2014-08-26 19:54:27
阅读次数:
237
importmultiprocessingimporttime,datetimedefSsh_Cmd(host,CmdFile):elog=open(‘error.log‘,‘a+‘)log=open(‘7z.log‘,"a+")forCmdinopen(CmdFile).readlines():Cmd=Cmd.strip()ifnotlen(Cmd)orCmd.startswith(‘#‘):continuessh=paramiko.SSHClient()ssh.set_missing_host_key_p..
分类:
编程语言 时间:
2014-08-26 19:54:07
阅读次数:
326
出现这个错误是在我在使用动态广播监听短信是否发送成功,正如错误提示所说,我忘了在我的代码中取消注册广播,因为这是动态广播,所以我必须在不需要的时候将这个广播手动注销,否则就会发生如题所示的异常,这个异常的解决办法很简单,就是在动态广播的onReceiver()方法中注销广播,如下代码所示:
public void onReceive(Context context, Intent i...
分类:
其他好文 时间:
2014-08-25 10:03:44
阅读次数:
220
Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm s...
分类:
其他好文 时间:
2014-08-24 20:47:42
阅读次数:
214
windowns系统安装,重新引导系统启动,解决bootmgr-is-missing的问题...
1、ORA-00942: table or view does not exist指的你要操作的表尚未存在,需要先create出来先。2、ORA-00922: missing or invalid option指的是有语法错误。遗漏了分号什么的3、Warning: Procedure created...
分类:
数据库 时间:
2014-08-20 01:13:16
阅读次数:
539
An array A[1...n] contains all the integers from 0 to n except for one number which is missing.In this problem, we cannot access an entire integer in ...
分类:
其他好文 时间:
2014-08-19 18:49:45
阅读次数:
251
1.进入jdk/lib目录,执行: mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true 2.加入依赖 <dependency> ? ? <group...
分类:
系统相关 时间:
2014-08-19 16:57:45
阅读次数:
229
Numeros, The Artist, had two listsAandB, such that,Bwas a permutation ofA. Numeros was very proud of these lists. Unfortunately, while transporting th...
分类:
其他好文 时间:
2014-08-15 14:10:28
阅读次数:
236