<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>lzm110 (木木)</title>
    <link>https://ruby-china.org/lzm110</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>top 的参数和 statm 参数比较</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;
&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="err"&gt;）&lt;/span&gt;&lt;span class="n"&gt;top显示的值是&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="no"&gt;PID&lt;/span&gt;   &lt;span class="no"&gt;USER&lt;/span&gt;      &lt;span class="no"&gt;PR&lt;/span&gt;  &lt;span class="no"&gt;NI&lt;/span&gt;  &lt;span class="no"&gt;VIRT&lt;/span&gt;    &lt;span class="no"&gt;RES&lt;/span&gt;  &lt;span class="no"&gt;SHR&lt;/span&gt; &lt;span class="no"&gt;S&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="no"&gt;CPU&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="no"&gt;MEM&lt;/span&gt;    &lt;span class="no"&gt;TIME&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;  &lt;span class="no"&gt;COMMAND&lt;/span&gt;
&lt;span class="mi"&gt;20680&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt;       &lt;span class="mi"&gt;25&lt;/span&gt;   &lt;span class="mi"&gt;0&lt;/span&gt;    &lt;span class="mi"&gt;1163&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="mi"&gt;339&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="mi"&gt;5224&lt;/span&gt; &lt;span class="no"&gt;S&lt;/span&gt;  &lt;span class="mf"&gt;0.0&lt;/span&gt;  &lt;span class="mf"&gt;4.3&lt;/span&gt; &lt;span class="mi"&gt;259&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mo"&gt;02&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;69&lt;/span&gt; &lt;span class="n"&gt;hexinl2cs64&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;qin&lt;/span&gt;

&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="err"&gt;）&lt;/span&gt;&lt;span class="n"&gt;statm显示的值如下&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="vi"&gt;@test207&lt;/span&gt; &lt;span class="n"&gt;realorder&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="c1"&gt;# tail -f /proc/20680/statm &lt;/span&gt;
&lt;span class="mi"&gt;297936&lt;/span&gt; &lt;span class="mi"&gt;86815&lt;/span&gt; &lt;span class="mi"&gt;1306&lt;/span&gt; &lt;span class="mi"&gt;1505&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="mi"&gt;278264&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="n"&gt;这是参数解释&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="no"&gt;CPU&lt;/span&gt; &lt;span class="n"&gt;以及CPU0&lt;/span&gt;&lt;span class="err"&gt;。。。&lt;/span&gt;&lt;span class="n"&gt;的每行的每个参数意思&lt;/span&gt;&lt;span class="err"&gt;（&lt;/span&gt;&lt;span class="n"&gt;以第一行为例&lt;/span&gt;&lt;span class="err"&gt;）&lt;/span&gt;&lt;span class="n"&gt;为&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="no"&gt;Size&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;任务虚拟地址空间的大小&lt;/span&gt; &lt;span class="no"&gt;VmSize&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="no"&gt;Resident&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;应用程序正在使用的物理内存的大小&lt;/span&gt; &lt;span class="no"&gt;VmRSS&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="no"&gt;Shared&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;共享页数&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="no"&gt;Trs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;程序所拥有的可执行虚拟内存的大小&lt;/span&gt; &lt;span class="no"&gt;VmExe&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="no"&gt;Lrs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;被映像到任务的虚拟内存空间的库的大小&lt;/span&gt; &lt;span class="no"&gt;VmLib&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="no"&gt;Drs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;程序数据段和用户态的栈的大小&lt;/span&gt; &lt;span class="err"&gt;（&lt;/span&gt;&lt;span class="no"&gt;VmData&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="no"&gt;VmStk&lt;/span&gt; &lt;span class="err"&gt;）&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="mo"&gt;04&lt;/span&gt;

&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="err"&gt;）&lt;/span&gt;&lt;span class="n"&gt;疑问&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="n"&gt;个数据对比起来&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;不管是物理内存还是实际内存都相差了差不多2倍的&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;这是什么原因&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;哪位大侠帮忙解释下&lt;/span&gt;&lt;span class="err"&gt;？&lt;/span&gt;




&lt;/code&gt;&lt;/pre&gt;</description>
      <author>lzm110</author>
      <pubDate>Fri, 07 Feb 2014 16:27:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/17103</link>
      <guid>https://ruby-china.org/topics/17103</guid>
    </item>
    <item>
      <title>bat 中函数的返回值</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="ss"&gt;:set&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;nFileSize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;
&lt;span class="n"&gt;call&lt;/span&gt; &lt;span class="ss"&gt;:getFileSize&lt;/span&gt; &lt;span class="no"&gt;D&lt;/span&gt;&lt;span class="p"&gt;:\&lt;/span&gt;&lt;span class="n"&gt;test1&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="n"&gt;sendszl2data&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="no"&gt;SZSEL2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gz&lt;/span&gt;
&lt;span class="n"&gt;call&lt;/span&gt; &lt;span class="ss"&gt;:getFileSize&lt;/span&gt; &lt;span class="no"&gt;D&lt;/span&gt;&lt;span class="p"&gt;:\&lt;/span&gt;&lt;span class="n"&gt;test1&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="n"&gt;sendszl2data&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="no"&gt;SZSEL2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gz&lt;/span&gt;
&lt;span class="n"&gt;echo&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="n"&gt;nFileSize&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;
&lt;span class="n"&gt;call&lt;/span&gt; &lt;span class="ss"&gt;:getFileSize&lt;/span&gt; &lt;span class="no"&gt;D&lt;/span&gt;&lt;span class="p"&gt;:\&lt;/span&gt;&lt;span class="n"&gt;test1&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="n"&gt;sendszl2data&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;\&lt;/span&gt;&lt;span class="no"&gt;SZSEL2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;20111031&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gz&lt;/span&gt;
&lt;span class="n"&gt;echo&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="n"&gt;nFileSize&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;pause&lt;/span&gt;


&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;获取指定文件的大小&lt;/span&gt;
&lt;span class="ss"&gt;:getFileSize&lt;/span&gt;
&lt;span class="vi"&gt;@echo&lt;/span&gt; &lt;span class="n"&gt;off&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="n"&gt;strFilePath&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="sr"&gt;/a nFileSize=0
for /&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="s2"&gt;"delims="&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="sx"&gt;%i in &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'dir  %strFilePath% /s/b'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt;  &lt;span class="n"&gt;nFileSize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sx"&gt;%%~zi
echo infun %&lt;/span&gt;&lt;span class="n"&gt;nFileSize&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="n"&gt;goto&lt;/span&gt; &lt;span class="ss"&gt;:EOF&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;为什么第一次结果是错的？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Tue, 04 Jun 2013 13:45:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/11475</link>
      <guid>https://ruby-china.org/topics/11475</guid>
    </item>
    <item>
      <title>wget 怎么覆盖下载</title>
      <description>&lt;p&gt;wget 下载下来的文件默认是不覆盖的吧？怎么添加覆盖的参数啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Thu, 28 Mar 2013 11:06:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/9803</link>
      <guid>https://ruby-china.org/topics/9803</guid>
    </item>
    <item>
      <title>send 10053 错误怎么处理啊？</title>
      <description>&lt;p&gt;"错误原因：您的主机中的软件放弃了一个已建立的连接。"这个我知道，关键是如何避免出现这种情况。
为什么，刚开始也能发送几个数据包，可后来就不能了呢？大概都是发送 150K 左右的数据后，就发送报错？这是什么原因啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Thu, 21 Mar 2013 10:03:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/9627</link>
      <guid>https://ruby-china.org/topics/9627</guid>
    </item>
    <item>
      <title>VC6.0 的下的 send</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;long&lt;/span&gt; &lt;span class="n"&gt;nSendLen&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sockRecv&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="no"&gt;Send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nRead&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;nRead=15000 固定
第一次发送的时候，返回的 nSendLen=nRead=15000。
第 2 次时候，返回的值是 4294967295，这是哪里出问题了啊？&lt;/p&gt;

&lt;p&gt;第一次发送的时候，data+14999 为“0“
第二次发送的时候，data+14999 为“1“&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Wed, 20 Mar 2013 10:38:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/9589</link>
      <guid>https://ruby-china.org/topics/9589</guid>
    </item>
    <item>
      <title>win 下的 gdb 的设置断点问题</title>
      <description>&lt;p&gt;&lt;code&gt;C:\Documents and Settings\All Users\Documents\12&amp;gt;gdb VDESimulator.exe&lt;/code&gt;
&lt;code&gt;GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)&lt;/code&gt;
&lt;code&gt;Copyright (C) 2011 Free Software Foundation, Inc.&lt;/code&gt;
&lt;code&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;&lt;/code&gt;
&lt;code&gt;This is free software: you are free to change and redistribute it.&lt;/code&gt;
&lt;code&gt;There is NO WARRANTY, to the extent permitted by law.  Type "show copying"&lt;/code&gt;
&lt;code&gt;and "show warranty" for details.&lt;/code&gt;
&lt;code&gt;This GDB was configured as "i686-cygwin".&lt;/code&gt;
&lt;code&gt;For bug reporting instructions, please see:&lt;/code&gt;
&lt;code&gt;&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;...&lt;/code&gt;
&lt;code&gt;Reading symbols from /cygdrive/c/Documents and Settings/All Users/Documents/12/V&lt;/code&gt;
&lt;code&gt;DESimulator.exe...(no debugging symbols found)...done.&lt;/code&gt;
&lt;code&gt;(gdb) set args realtime.dat 8129 0 1024 100&lt;/code&gt;
&lt;code&gt;(gdb) b VDESimulator.cpp:47&lt;/code&gt;
&lt;code&gt;No symbol table is loaded.  Use the "file" command.&lt;/code&gt;
&lt;code&gt;Make breakpoint pending on future shared library load? (y or [n]) n&lt;/code&gt;
&lt;code&gt;(gdb) b VDESimulator.cpp:47&lt;/code&gt;
&lt;code&gt;No symbol table is loaded.  Use the "file" command.&lt;/code&gt;
&lt;code&gt;Make breakpoint pending on future shared library load? (y or [n]) y&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Breakpoint 1 (VDESimulator.cpp:47) pending.&lt;/code&gt;
&lt;code&gt;(gdb)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;windows 下调试的 gdb 设置的断点一直不生效的是什么原因啊？怎么处理啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Mon, 18 Mar 2013 17:29:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/9539</link>
      <guid>https://ruby-china.org/topics/9539</guid>
    </item>
    <item>
      <title>计划任务当中的 shell 怎么获取当前的路径</title>
      <description>&lt;p&gt;我知道在 shell 中，可以通过 ${PWD}获取当前 shell 所在的路径，但是在计划任务中当执行到这一步的时候，默认是${PWD}=/root 那么怎么获取脚本的路径呢？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Thu, 14 Mar 2013 10:48:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/9405</link>
      <guid>https://ruby-china.org/topics/9405</guid>
    </item>
    <item>
      <title>ssh 登陆远程后自动执行命令</title>
      <description>&lt;p&gt;我 ssh root@192.23.23.23 登陆到远程后，输入密码后，想在远程的服务器上打印 hello, 但但是我不想自己手动的打印 hello，怎么写 shell 脚本啊？&lt;/p&gt;

&lt;p&gt;我的本机不能安装 expect，所以不能用 expect。 &lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Wed, 13 Mar 2013 09:43:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/9374</link>
      <guid>https://ruby-china.org/topics/9374</guid>
    </item>
    <item>
      <title>mail 发送邮件时，忽略了 tab</title>
      <description>&lt;p&gt;我的邮件内容是：
\t\t hello!
结果只接受到了，hello，怎么处理这个问题啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Thu, 07 Mar 2013 21:11:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/9227</link>
      <guid>https://ruby-china.org/topics/9227</guid>
    </item>
    <item>
      <title>expect 的问题</title>
      <description>&lt;p&gt;脚本如下：
#!/usr/local/bin/expect &lt;/p&gt;
&lt;h2 id="解释器声明"&gt;解释器声明&lt;/h2&gt;
&lt;p&gt;set timeout -1&lt;/p&gt;
&lt;h2 id="设置超时时间，单位秒"&gt;设置超时时间，单位秒&lt;/h2&gt;
&lt;p&gt;#主机 IP
set hostIp      [lindex $argv 0]&lt;br&gt;
#IP 的端口&lt;br&gt;
set ipPort      [lindex $argv 1]&lt;br&gt;
#用户名
set userName        [lindex $argv 2]&lt;br&gt;
#密码
set userPassword        [lindex $argv 3]&lt;br&gt;
#远程主机目录 
set remoteDir       [lindex $argv 4]&lt;br&gt;
#本地主机目录&lt;br&gt;
set localDir        [lindex $argv 5]            &lt;/p&gt;

&lt;p&gt;#scp 拷贝指令
spawn scp -P $ipPort -r $userName@$hostIp:$remoteDir/* $localDir&lt;/p&gt;
&lt;h2 id="expect也是内部命令，作用是监视终端输出是否包含后面的内容，有则执行下面的send，没有就等待上面设置的timeout时间"&gt;expect 也是内部命令，作用是监视终端输出是否包含后面的内容，有则执行下面的 send，没有就等待上面设置的 timeout 时间&lt;/h2&gt;
&lt;p&gt;expect {
"yes/no" { send "yes\r"; exp_continue}
"password:" { send $userPassword; send "\r"}
}&lt;/p&gt;

&lt;p&gt;expect {
 "&lt;em&gt;denied&lt;/em&gt;" { send "\r";exit -1;}
}&lt;/p&gt;

&lt;p&gt;expect eof&lt;/p&gt;

&lt;p&gt;开始的时候，没有 expect {
 "&lt;em&gt;denied&lt;/em&gt;" { send "\r";exit -1;}
}这段代码，所以没有提示信息。一旦有了这段代码一直提示 send: spawn id exp4 not open。这个问题怎么处理啊？怎么样避免这个提示出现啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Wed, 06 Mar 2013 14:17:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/9181</link>
      <guid>https://ruby-china.org/topics/9181</guid>
    </item>
    <item>
      <title>linux 下带着密钥登陆</title>
      <description>&lt;p&gt;在 linux 下登陆其他的服务器，怎么带着密钥登陆啊&lt;/p&gt;

&lt;p&gt;在 windows 下，我们用 putty、winscp 直接指定密钥位置。在 linux 下怎么处理啊？？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Mon, 04 Mar 2013 15:39:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/9119</link>
      <guid>https://ruby-china.org/topics/9119</guid>
    </item>
    <item>
      <title>屏蔽 mkdir 系统信息</title>
      <description>&lt;p&gt;怎么让系统不打印 mkdir，“无法创建目录，文件已存在的”的信息？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Fri, 01 Mar 2013 17:37:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/9052</link>
      <guid>https://ruby-china.org/topics/9052</guid>
    </item>
    <item>
      <title>wget 怎么下载整个目录下的文件</title>
      <description>&lt;p&gt;wget 只能下载单个文件，请问怎么下载整个目录下的文件啊 &lt;/p&gt;

&lt;p&gt;例如：我下载文件 wget http:/10.1.2.1/usr/local/1.c -P /home
我现在要下载/usr/local/下的整个目录，怎么办啊？&lt;/p&gt;</description>
      <author>lzm110</author>
      <pubDate>Wed, 27 Feb 2013 17:17:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/8981</link>
      <guid>https://ruby-china.org/topics/8981</guid>
    </item>
  </channel>
</rss>
