文 库
库中万物皆非宝,临到用时价千斤!
posts - 13,comments - 3,trackbacks - 0
摘要: defssh_cmd(ip,passwd,cmd,newpwd): ret= -1 ssh=pexpect.spawn('ssh -q -p36000 root@%s "%s"'%(ip,cmd)) try: i=ssh.expect(['password:','continue connecting (yes/no)?'],timeout=5) ifi==0: ssh.sendline(passwd) elifi==1: ssh.sendline('yes\n') ssh.expect('passwo阅读全文
posted @ 2011-08-02 23:44 Cursorkey 阅读(22) 评论(0) 编辑
摘要: Plink (PuTTY Link) is a command-line connection tool similar to UNIXssh. It is mostly used for automated operations, such as making CVS access a repository on a remote server.Plink is probably not what you want if you want to run an interactive session in a console window.7.1 Starting PlinkPlink is 阅读全文
posted @ 2011-08-02 23:24 Cursorkey 阅读(52) 评论(0) 编辑
摘要: 转自:http://zhidao.baidu.com/question/98667271.htmlnet use \\ip\ipc$ " " /user:" " 建立IPC空链接 net use \\ip\ipc$ "密码" /user:"用户名" 建立IPC非空链接 net use h: \\ip\c$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H: net use h: \\ip\c$ 登陆后映射对方C:到本地为H: net use \\ip\ipc阅读全文
posted @ 2011-07-27 00:23 Cursorkey 阅读(19) 评论(0) 编辑
摘要: 转自:http://pcranch.blogcn.com/服务器是Windows 2003系统,2003中VPN服务叫做“路由和远程访问”,系统默认就安装了这个服务,但是没有启用。首先我们要做的是保证vpn起用的条件,"一停四开"1.window自带的防火墙(windows firewall/internet connection sharing (ICS) 要停止2.远程注册表服务(Remote Registry)必须开启3.server服务 (Server)必须开启4.route路由服务(Routing and Remote Access)必须开启5.Workstati阅读全文
posted @ 2011-07-27 00:22 Cursorkey 阅读(29) 评论(0) 编辑
摘要: ;BEGIN SCRIPT----------------------------------------------;simulates a TELNET connectionGlobal $host, $port, $delay, $user, $pass, $sk, $ack$host = "192.168.1.1"$port = 23; miliseconds to wait before sending/receiving something$delay = 300 ; compensates network/internet delays$user = &quo阅读全文
posted @ 2011-07-22 00:35 Cursorkey 阅读(83) 评论(0) 编辑
摘要: MS的脚本中心,有时间多看看:http://gallery.technet.microsoft.com/scriptcenter/方法一:Sub FileSearchByHavrda_Example_of_procedure_calling()'' Example of FileSearchByHavrda procedure calling as replacement of missing FileSearch function in the newest MS Office VBA' 01.06.2009, Author: P. Havrda, Czech Rep阅读全文
posted @ 2011-04-06 23:32 Cursorkey 阅读(228) 评论(0) 编辑
摘要: SVN全名Subversion。SVN与CVS一样,是一个跨平台的软件,支持大多数常见的操作系统。本文只讨论Windows的情况。其官方网站是:http://subversion.tigris.org(tigris/是一个和sourceforge类似的开源网站,与sf不同的是,sf提供的CVS服务,而tigris提供的是SVN服务)。 在介绍SVN的应用前,先讨论一下源码管理的一个重要的基本概念:...阅读全文
posted @ 2009-09-23 00:31 Cursorkey 阅读(336) 评论(2) 编辑
posted @ 2006-02-07 09:46 Cursorkey 阅读(148) 评论(1) 编辑
posted @ 2005-11-02 15:10 Cursorkey 阅读(87) 评论(0) 编辑
posted @ 2005-10-21 13:58 Cursorkey 阅读(1119) 评论(0) 编辑