<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <id>http://yuanann.pixnet.net/blog</id>
  <title><![CDATA[拉不拉多的夢幻世界:: PIXNET 痞客邦 ::]]></title>
  <author>
    <name>yuanann</name>
    <email>yuanann@not-valid.com</email>
  </author>
  <updated>2008-11-18T18:09:59+08:00</updated>
  <published>2008-11-18T18:09:59+08:00</published>
  <link rel="self" href="http://yuanann.pixnet.net/blog" hreflang="zh"/>
  <subtitle><![CDATA[程式設計 Perl Linux小技巧 Shell Script 水族 孔雀魚 水草]]></subtitle>
  <rights>Copyright 2003-2008 yuanann,Pixnet Digital Media Coporation. All rights reserved.</rights>
  <generator>PIXNET Media Digital Coporation</generator>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/22396433</id>
    <title><![CDATA[在VirtualBox設定分享目錄]]></title>
    <updated>2008-11-18T18:09:59+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/22396433"/>
    <summary><![CDATA[本文要簡介在VirtualBox內的os 分享目錄
其實我也搞了很久,才成功的 
網路上有很多教學,我也是參考別人的作法後,才畫出這張畫面的^^
按照這張圖就可以成功了.
最後一張圖是成功的畫面^^
 
&nbsp;
]]></summary>
    <content type="html"><![CDATA[<p>本文要簡介在VirtualBox內的os 分享目錄</p>
<p>其實我也搞了很久,才成功的 </p>
<p>網路上有很多教學,我也是參考別人的作法後,才畫出這張畫面的^^</p>
<p>按照這張圖就可以成功了.</p>
<p>最後一張圖是成功的畫面^^</p>
<p><img title="2.PNG" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/4922955fa3eeb.png" alt="2.PNG" border="0"> </p>
<p>&nbsp;</p>
<p><img title="2t.png" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/492295bb4a8a6.png" alt="2t.png" border="0"></p>  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/22396433">(繼續閱讀...)</a></div>]]></content>
    <category term="電腦軟體(Linux)"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/22396433#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/22366022</id>
    <title><![CDATA[用Notepad開發Perl程式]]></title>
    <updated>2008-11-15T01:54:08+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/22366022"/>
    <summary><![CDATA[很多久沒有更新Blog了 &gt;&lt; 
而今天要介紹用簡潔的編輯器(Notepad++)在Windows上面開發Perl程式.
請按此進入官網 找到下載專區 進去就可以看到下載點,此頁還有外掛(Plugin可以下載)安裝方法很直覺,本文就不多介紹了.
開啟後,找到外掛模組&gt;NppExec 點選Show Console Dialog&nbsp; 如下圖所示

用Notepad++寫了一個簡單的範例
open("file","a.txt") ;while(&lt;file&gt;){&nbsp;&nbsp;&nbsp; print $_;}和一個文字檔,a.txt 內容如下
line 1 :aline 2 :bline 3 :c將此二個檔放在c:\perl\bin 底下
另外在Console下面輸入下面的指令
cd c:\perl\bin
perl test.pl
請參閱下圖即可,這樣就可以不用像之前在Dos和Editor之間作交換了,省事方便很多.
Notepad++還有很多功能,值得好好品味一番.
&nbsp;

&nbsp;
&nbsp;
&nbsp;
&nbsp;]]></summary>
    <content type="html"><![CDATA[<p>很多久沒有更新Blog了 &gt;&lt; </p>
<p>而今天要介紹用簡潔的編輯器(Notepad++)在Windows上面開發Perl程式.</p>
<p>請按此進入<a href="http://notepad-plus.sourceforge.net">官網 </a><br>找到<a href="http://notepad-plus.sourceforge.net/tw/download.php?lang=tw">下載專區</a> 進去就可以看到下載點,此頁還有外掛(Plugin可以下載)<br>安裝方法很直覺,本文就不多介紹了.</p>
<p>開啟後,找到外掛模組&gt;NppExec 點選Show Console Dialog&nbsp; 如下圖所示</p>
<p><img src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/491dbc489628b.gif" alt="" border="0"></p>
<p>用Notepad++寫了一個簡單的範例</p>
<p>open("file","a.txt") ;<br>while(&lt;file&gt;)<br>{<br>&nbsp;&nbsp;&nbsp; print $_;<br>}<br>和一個文字檔,a.txt 內容如下</p>
<p>line 1 :a<br>line 2 :b<br>line 3 :c<br>將此二個檔放在c:\perl\bin 底下</p>
<p>另外在Console下面輸入下面的指令</p>
<p>cd c:\perl\bin</p>
<p>perl test.pl</p>
<p>請參閱下圖即可,這樣就可以不用像之前在Dos和Editor之間作交換了,省事方便很多.</p>
<p>Notepad++還有很多功能,值得好好品味一番.</p>
<p>&nbsp;</p>
<p><img src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/491dbdb3ad700.gif" alt="" border="0"></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
&nbsp;  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/22366022">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/22366022#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/20660122</id>
    <title><![CDATA[Linux :basename小技巧]]></title>
    <updated>2008-07-30T00:19:54+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/20660122"/>
    <summary><![CDATA[在Linux上要若要取得某個路徑下檔名檔案的名稱可以用basename這個指令來處理用簡單的範例來說明取得/tmp/a.png 這個檔案名稱,請用以下指令#basename /tmp/a.pnga.png結果輸出就是a.png囉...]]></summary>
    <content type="html"><![CDATA[在Linux上要若要取得某個路徑下檔名檔案的名稱可以用basename這個指令來處理<br />用簡單的範例來說明<br />取得/tmp/a.png 這個檔案名稱,請用以下指令<br /><font color="#ffffff" style="background-color: rgb(0, 0, 0);">#basename /tmp/a.png<br />a.png</font><br style="background-color: rgb(0, 0, 0);" />結果輸出就是a.png囉...<br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/20660122">(繼續閱讀...)</a></div>]]></content>
    <category term="Linux"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/20660122#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/20323203</id>
    <title><![CDATA[Linux :防毒軟體AVG ]]></title>
    <updated>2008-07-22T22:40:21+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/20323203"/>
    <summary><![CDATA[這個防毒軟體有跨平台,Windows的很多網站有介紹了,在本文中,要介紹Linux 版的安裝與使用方法AVG請按我下載這裡也有rpm的檔案可以下載連到這個網頁後,把檔案下載到local的電腦&nbsp; 本文介紹時版本為 AVG Free Linux 7.1.385因為下載的是rpm檔,安裝很簡單,請用以下指令rpm -ivh avglinux-7.1-24_free_rh_avi0720.i386.rpmerror: Failed dependencies:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libexpat.so.0 is needed by avglinux-7.1-24_free_rh_avi0720.i386&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libstdc++-libc6.2-2.so.3 is needed by avglinux-7.1-24_free_rh_avi0720.i386把少的package裝一裝吧 ^^ yum -y install compat-libstdc++-296yum -y install compat-expat1rpm -ivh avglinux-7.1-24_free_rh_avi0720.i386.rpmPreparing...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]&nbsp;&nbsp; 1:avglinux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]AVG7 Anti-Virus command line scannerCopyright (c) 2006 GRISOFT, s.r.o.Program version 7.1.24, engine 718Virus Database: Version 268.2.0/275&nbsp; 2006-03-06License type is FREE.Please launch the '/opt/grisoft/avggui/bin/avggui_update_licinfo.sh'script as root for updating license information.AVG 7.1 Anti-Virus Free for Linux successfully installed.裝好了更新病毒碼 (signatures)#avgupdate會出現usage 看了一下 要更新要加-o 即可#avgupdate -o 這樣就可以更新病毒碼了畫面就像下面一樣 Downloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]23% [u7iavi1566u8.bin 26% 6.44MB/24.64MB] 112.65KB/s 3m8s裝裝好後會看到successfully的字眼&nbsp; 的畫面 如下.Preparing to download files from 'http://www.grisoft.cz/softw/70/update/'.Downloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]24% [u7iavi1566u8.bin 27% 6.67MB/24.64MB] 114.68KB/s 3m6sDownloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]23% [u7iavi1566u8.bin 26% 6.44MB/24.64MB] 112.65KB/s 3m8sDownloading file: u7lx51fd.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [22838962B]Updating...Online update finished successfully.命令列 scan file :以下scan /tmp的所有檔案為例#avgscan /tmp/ AVG7 Anti-Virus command line scannerCopyright (c) 2007 GRISOFT, s.r.o.Program version 7.5.51, engine 442Virus Database: Version 270.5.4/1567&nbsp; 2008-07-22License type is FREE.下面會年現scan的file 成功&nbsp; ^^   ]]></summary>
    <content type="html"><![CDATA[<br />這個防毒軟體有跨平台,Windows的很多網站有介紹了,在本文中,要介紹Linux 版的安裝與使用方法<br />AVG請<a href="javascript:void(0);/*1216737960912*/">按我下載</a><br />這裡也有rpm的檔案<a href="http://free.grisoft.com/filedir/inst/avg75flr-r51-a1243.i386.rpm">可以下載</a><br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/96992199"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1216739169.png" /></a><br /><br />連到這個網頁後,把檔案下載到local的電腦&nbsp; 本文介紹時版本為 AVG Free Linux 7.1.385<br />因為下載的是rpm檔,安裝很簡單,請用以下指令<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">rpm -ivh avglinux-7.1-24_free_rh_avi0720.i386.rpm</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">error: Failed dependencies:</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libexpat.so.0 is needed by avglinux-7.1-24_free_rh_avi0720.i386</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libstdc++-libc6.2-2.so.3 is needed by avglinux-7.1-24_free_rh_avi0720.i386</span></font><br />把少的package裝一裝吧 ^^ <br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">yum -y install compat-libstdc++-296</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">yum -y install compat-expat1</span></font><br /><br /><br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">rpm -ivh avglinux-7.1-24_free_rh_avi0720.i386.rpm</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Preparing...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp; 1:avglinux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ########################################### [100%]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">AVG7 Anti-Virus command line scanner</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Copyright (c) 2006 GRISOFT, s.r.o.</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Program version 7.1.24, engine 718</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Virus Database: Version 268.2.0/275&nbsp; 2006-03-06</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">License type is FREE.</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Please launch the '/opt/grisoft/avggui/bin/avggui_update_licinfo.sh'</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">script as root for updating license information.</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">AVG 7.1 Anti-Virus Free for Linux successfully installed.</span></font><br /><br />裝好了<br />更新病毒碼 (signatures)<br /><br />#avgupdate<br />會出現usage 看了一下 <br />要更新要加-o 即可<br /><br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">#avgupdate -o </span></font><br />這樣就可以更新病毒碼了<br />畫面就像下面一樣 <br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">Downloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">23% [u7iavi1566u8.bin 26% 6.44MB/24.64MB] 112.65KB/s 3m8s</span><br style="background-color: rgb(0, 0, 0);" /></font><br /><br />裝裝好後會看到successfully的字眼&nbsp; 的畫面 如下.<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">Preparing to download files from 'http://www.grisoft.cz/softw/70/update/'.</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">24% [u7iavi1566u8.bin 27% 6.67MB/24.64MB] 114.68KB/s 3m6sDownloading file: avg7info.ctf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp; 3659B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7avi1343u8.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [6280829B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7iavi1566u8.bin&nbsp;&nbsp;&nbsp;&nbsp; [25841327B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">23% [u7iavi1566u8.bin 26% 6.44MB/24.64MB] 112.65KB/s 3m8s</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Downloading file: u7lx51fd.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [22838962B]</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Updating...</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Online update finished successfully.</span><br style="background-color: rgb(0, 0, 0);" /></font><br /><br />命令列 scan file :以下scan /tmp的所有檔案為例<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">#avgscan /tmp/ </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">AVG7 Anti-Virus command line scanner</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Copyright (c) 2007 GRISOFT, s.r.o.</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Program version 7.5.51, engine 442</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Virus Database: Version 270.5.4/1567&nbsp; 2008-07-22</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">License type is FREE.</span><br style="background-color: rgb(0, 0, 0);" /></font>下面會年現scan的file <br /><br /><br />成功&nbsp; ^^<br /><br /><br /><br /><br /><br /><h2><br /></h2> <h2><br /></h2>  <a target="_blank" href="http://www.pixnet.net/photo/yuanann/96992199"><br /></a>  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/20323203">(繼續閱讀...)</a></div>]]></content>
    <category term="電腦軟體(Linux)"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/20323203#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/20242114</id>
    <title><![CDATA[便宜服務又好的搬家公司]]></title>
    <updated>2008-07-21T09:23:06+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/20242114"/>
    <summary><![CDATA[在網路上找到的搬家公司挺不錯的,推薦給要搬家的人最新資訊請 點我 點我搬家公司服務簡介 新竹 --小楊-- 平價 自助搬家 網拍託運  「自助搬家」的定義﹕租車附司機不含苦力。 　　*** 需協助搬運請事前告知 ***  貨車規格﹕ 　　1. 2.5噸得利卡貨車 　　2. 貨車承載空間﹕長290公分 X 寬170公分 　　3. 電動尾門升降機(方便搬運重物，如機車等) 　　4. 前座可多載2人、有冷氣(禁止抽煙、喝酒、嚼檳榔) 　　5. 顏色﹕商業藍(不可挑選顏色) 　　6. 小推車  收費方式﹕ 　　計算方法﹕時間 + 距離（從搬運地算起至完成搬運止） 	　　時間﹕1小時250元，不足1小時以1小時計。 	　　距離﹕10公里以內200元，每增加1公里加收20元。 	　　總價﹕每次出車最少450元(250元/小時 + 200元/10公里 = 450元) 　　*** 依實際情況收費，合理公道 ***  服務時間﹕ 	週一至週五﹕PM 19:00 ~ PM 24:00 	週六、週日﹕AM 8:00 ~ PM 24:00  注意事項﹕ 	1. 請事前先將物品裝箱打包，以節省時間與金錢。 	2. 請將路線事先規劃告知，以節省行車時間，增加行車安全。   　　~~~ 歡迎來信/電詢價 0982-035032 周小姐 ~~~ 　　~~~ max.syy@gmail.com ~~~  ]]></summary>
    <content type="html"><![CDATA[在網路上找到的搬家公司<br />挺不錯的,推薦給要搬家的人<br />最新資訊請<font size="5"><strong> <a href="http://www.xknowhow.com/car/ ">點我 點我</a></strong></font><br /><br />搬家公司服務簡介<br /> <h1>新竹 --小楊-- 平價 自助搬家 網拍託運</h1>  「<font color="red" size="5"><strong>自助搬家</strong></font>」的定義﹕租車附司機不含苦力。<br /> 　　*** 需協助搬運請事前告知 ***<br /> <br /> <font color="blue" size="5"><strong>貨車規格﹕</strong></font><br /> 　　1. 2.5噸得利卡貨車<br /> 　　2. 貨車承載空間﹕長290公分 X 寬170公分<br /> 　　3. 電動尾門升降機(方便搬運重物，如機車等)<br /> 　　4. 前座可多載2人、有冷氣(禁止抽煙、喝酒、嚼檳榔)<br /> 　　5. 顏色﹕商業藍(不可挑選顏色)<br /> 　　6. 小推車<br /> <br /> <font color="blue" size="5"><strong>收費方式﹕</strong></font><br /> 　　計算方法﹕<strong>時間</strong> + <strong>距離</strong>（從搬運地算起至完成搬運止）<br /> 	　　時間﹕1小時250元，不足1小時以1小時計。<br /> 	　　距離﹕10公里以內200元，每增加1公里加收20元。<br /> 	　　總價﹕每次出車最少450元(250元/小時 + 200元/10公里 = 450元)<br /> 　　*** 依實際情況收費，合理公道 ***<br /> <br /> <font color="blue" size="5"><strong>服務時間﹕</strong></font><br /> 	週一至週五﹕PM 19:00 ~ PM 24:00<br /> 	週六、週日﹕AM 8:00 ~ PM 24:00<br /> <br /> <font color="blue" size="5"><strong>注意事項﹕</strong></font><br /> 	1. 請事前先將物品裝箱打包，以節省時間與金錢。<br /> 	2. 請將路線事先規劃告知，以節省行車時間，增加行車安全。<br /> <br /> <center> 　　<font color="blue" size="5">~~~ 歡迎來信/電詢價 0982-035032 周小姐 ~~~</font><br /> 　　<font color="blue" size="5">~~~ max.syy@gmail.com ~~~</font> </center>   <div class="more"><a href="http://yuanann.pixnet.net/blog/post/20242114">(繼續閱讀...)</a></div>]]></content>
    <category term="未分類"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/20242114#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/20240808</id>
    <title><![CDATA[Linux :找出某個程序的 pid 有那些]]></title>
    <updated>2008-07-21T08:13:11+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/20240808"/>
    <summary><![CDATA[我們要知道某個process 的pid可以用 ps 指令 範例如下:我想知道mysql這個服務的pid 可以用以下指令ps aux |grep mysqldroot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2052&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 4796&nbsp; 1252 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 07:59&nbsp;&nbsp; 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pidmysql&nbsp;&nbsp;&nbsp;&nbsp; 2114&nbsp; 0.0&nbsp; 0.8 136772 16988 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sl&nbsp;&nbsp; 07:59&nbsp;&nbsp; 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sockroot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2954&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 4124&nbsp;&nbsp; 704 pts/1&nbsp;&nbsp;&nbsp; R+&nbsp;&nbsp; 08:04&nbsp;&nbsp; 0:00 grep mysqld也可以用pidof 這個指令來查詢pid 範例如下pidof mysqld2114]]></summary>
    <content type="html"><![CDATA[我們要知道某個process 的pid可以用 ps 指令 <br />範例如下:我想知道mysql這個服務的pid 可以用以下指令<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">ps aux |grep mysqld</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2052&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 4796&nbsp; 1252 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 07:59&nbsp;&nbsp; 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">mysql&nbsp;&nbsp;&nbsp;&nbsp; 2114&nbsp; 0.0&nbsp; 0.8 136772 16988 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sl&nbsp;&nbsp; 07:59&nbsp;&nbsp; 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2954&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 4124&nbsp;&nbsp; 704 pts/1&nbsp;&nbsp;&nbsp; R+&nbsp;&nbsp; 08:04&nbsp;&nbsp; 0:00 grep mysqld</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);"><br /><font color="#000000"><span style="background-color: rgb(255, 255, 255);">也可以用pidof 這個指令來查詢pid </span></font><br /></span></font>範例如下<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">pidof mysqld</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">2114</span><br style="background-color: rgb(0, 0, 0);" /></font><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/20240808">(繼續閱讀...)</a></div>]]></content>
    <category term="Linux"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/20240808#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/20061242</id>
    <title><![CDATA[Linux :split小技巧]]></title>
    <updated>2008-07-16T23:59:02+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/20061242"/>
    <summary><![CDATA[split 在程式設定裡可以根據 特定字來分隔字串,但用在linux 的指令時,可以用來把檔案做分割,例如要把一個500MB的檔案(file.tar.gz),分割成每個檔50M的小檔案可以用以下指令 split -b 50m file.tar.gz&nbsp; 若要合併 可以用cat 指令把那些小檔案合併成一個大檔案 範例如下&nbsp; cat xaa xab xac xad xae xaf &gt; file.tar.gz]]></summary>
    <content type="html"><![CDATA[split 在程式設定裡可以根據 特定字來分隔字串,但用在linux 的指令時,可以用來把檔案做分割,例如要把一個500MB的檔案(file.tar.gz),分割成每個檔50M的小檔案可以用以下指令 <br />split -b 50m file.tar.gz&nbsp; <br />若要合併 可以用cat 指令把那些小檔案合併成一個大檔案 範例如下<br />&nbsp; cat xaa xab xac xad xae xaf &gt; file.tar.gz<br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/20061242">(繼續閱讀...)</a></div>]]></content>
    <category term="Linux"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/20061242#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19944310</id>
    <title><![CDATA[不是要退出？ 謝長廷重砲轟馬 ]]></title>
    <updated>2008-07-14T12:52:42+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19944310"/>
    <summary><![CDATA[我是在7/13晚上吃飯在外面的小吃店看到這則新聞的.對於這樣的行為感到不屑在看到的新聞畫面是謝長廷先生,用嚴肅的表情對國人宣布,要退出政壇,看起來一點也不像在說笑話的模樣經過多少個月後,竞然用是幽默啦！ 這樣的話語說要重出政壇,真不知那來的勇氣可以說出這樣的話&gt;&lt;而畫面後方的支持者,是用什麼心態去支持這樣的政治人物? 真是另人不解&nbsp; 這樣的畫面看在民進黨的支持者眼裡,不知是何滋味? (點我看畫面)&nbsp;在7/14日 又看到這則新聞&nbsp; 標題是&quot;不服輸給馬這種ㄎㄚ ㄒㄧㄠ&quot; 謝長廷生先,然道您的心理只有個人的輸贏嗎? 還是民進黨已經沒有人才了? 才會要你再複出政黨 這樣騙子以後說的話有誰要相信,真是教壞小孩子]]></summary>
    <content type="html"><![CDATA[我是在7/13晚上吃飯在外面的小吃店看到這則新聞的.<br />對於這樣的行為感到不屑<br />在看到的新聞畫面是謝長廷先生,用嚴肅的表情對國人宣布,要退出政壇,看起來一點也不像在說笑話的模樣<br />經過多少個月後,竞然用<span style="background-color: rgb(255, 0, 0);">是幽默啦！</span> 這樣的話語說要重出政壇,真不知那來的勇氣可以說出這樣的話&gt;&lt;<br />而畫面後方的支持者,是用什麼心態去支持這樣的政治人物? 真是另人不解&nbsp; <br />這樣的畫面看在民進黨的支持者眼裡,不知是何滋味? (<a href="javascript:void(0);/*1216011945663*/">點我看畫面)</a><br /><br />&nbsp;<br />在7/14日 又看到這則<a href="http://news.yam.com/chinatimes/politics/200807/20080714560145.html">新聞&nbsp; </a><br />標題是&quot;不服輸給馬這種ㄎㄚ ㄒㄧㄠ&quot;<br /><br /><strong><font color="#000000" size="+2" /></strong> 謝長廷生先,然道您的心理只有個人的輸贏嗎? <br />還是民進黨已經沒有人才了? <br />才會要你再複出政黨 <br />這樣騙子以後說的話有誰要相信,<br />真是教壞小孩子<br /><br /><br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19944310">(繼續閱讀...)</a></div>]]></content>
    <category term="未分類"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19944310#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19821767</id>
    <title><![CDATA[Perl:取得OS的訊息]]></title>
    <updated>2008-07-11T11:01:26+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19821767"/>
    <summary><![CDATA[本來想要寫一隻取得OS的某些資料的script,找了cpan之後,看到Sys::Info 這個模組有這樣的功能看了一下資料.就寫了一個簡單的範例 安裝Sys::Info&nbsp; 請到這裡去下載在寫範例時,在用到version這個function時,出現了下面訊息,看來是少了 Linux::Distribution 這個模組,在安裝後就可以正常執行這個範例了看來這個模組還提供了相當多的function,可以讓perl 去取得OS的很多訊息. 是個不錯的模組而這個模組我只有在Linux 上面執行, 在Window上面沒有跑過 ^^ Can't locate Linux/Distribution.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Sys/Info/Driver/Linux/OS.pm line 216.#!/bin/perl use Sys::Info;my $info = Sys::Info-&gt;new;my $os&nbsp;&nbsp; = $info-&gt;os(%options);if ($os-&gt;is_windows){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;OS is window\n&quot;;}else{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;os is unix or others OS&quot; ;}$version=$os-&gt;version;print &quot;OS Version is:$version\n&quot; ;$name=$os-&gt;login_name;print &quot;Login name is :$name\n&quot; ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]]></summary>
    <content type="html"><![CDATA[本來想要寫一隻取得OS的某些資料的script,找了cpan之後,看到Sys::Info 這個模組有這樣的功能<br />看了一下資料.就寫了一個簡單的範例 <br />安裝Sys::Info&nbsp; 請到這裡<a href="javascript:void(0);/*1215778193282*/">去下載</a><br />在寫範例時,在用到version這個function時,出現了下面訊息,看來是少了 Linux::Distribution <a href="javascript:void(0);/*1215778464728*/">這個模組</a>,在安裝後就可以正常執行這個範例了<br />看來這個模組還提供了相當多的function,可以讓perl 去取得OS的很多訊息. 是個不錯的模組<br />而這個模組我只有在Linux 上面執行, 在Window上面沒有跑過 ^^ <br /><font color="#ffffff" style="background-color: rgb(0, 0, 0);">Can't locate Linux/Distribution.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Sys/Info/Driver/Linux/OS.pm line 216.<br /></font><br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">#!/bin/perl </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">use Sys::Info;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">my $info = Sys::Info-&gt;new;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">my $os&nbsp;&nbsp; = $info-&gt;os(%options);</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">if ($os-&gt;is_windows)</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">{</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;OS is window\n&quot;;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">}</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">else</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">{</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;os is unix or others OS&quot; ;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">}</span><br /><span style="background-color: rgb(0, 0, 0);">$version=$os-&gt;version;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">print &quot;OS Version is:$version\n&quot; ;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">$name=$os-&gt;login_name;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">print &quot;Login name is :$name\n&quot; ;</span></font><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19821767">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19821767#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19821061</id>
    <title><![CDATA[Per::ActivePerl 模組安裝方法(PPM)]]></title>
    <updated>2008-07-11T10:39:50+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19821061"/>
    <summary><![CDATA[在Linux 有cpan 可以來安裝想要安裝的模組,而在window裡的ActivePerl有ppm可以安裝想要安裝的模組ppm在安裝好ActivePerl後ppm即安裝完成,ActivePerl的安裝請看這裡啟動ppm 的方法很簡單在Dos模式下輸入ppm 再按Enter即可畫面如下在啟動時會有Synchronizing Database 的動作,完成後就會看到上面的畫面了安裝模組在上面的畫面,可以看出ppm所提供所有的模組,使用者只要知道自己要的模組,右鍵點選後會出現Install 模組名租的畫面.之後再點選以下的畫面打勾的地方即可,安裝好會結果會出現在status的地方&nbsp;  個人覺的ppm可取之處就是他有列出模組在cpan的網址,這對user而言,可以直按連過去看此模組的內容,還挺方便的對每個模組的用法,在Abstract 的部份有簡單說明此模組的用法,也是很好的設計]]></summary>
    <content type="html"><![CDATA[在Linux 有cpan 可以來安裝想要安裝的模組,而在window裡的ActivePerl有ppm可以安裝想要安裝的模組<br />ppm在安裝好ActivePerl後ppm即安裝完成,ActivePerl的安裝請<a href="javascript:void(0);/*1215789538581*/">看這裡</a><br />啟動ppm 的方法很簡單在Dos模式下輸入ppm 再按Enter即可<br />畫面如下<br /><br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/95765658"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1215789928.gif" /></a><br /><br />在啟動時會有Synchronizing Database 的動作,<br />完成後就會看到上面的畫面了<br /><br />安裝模組<br />在上面的畫面,可以看出ppm所提供所有的模組,使用者只要知道自己要的模組,右鍵點選後會出現Install 模組名租的畫面.<br />之後再點選以下的畫面打勾的地方即可,安裝好會結果會出現在status的地方<br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/95768613"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1215791553.png" /></a><br /><br /><br />&nbsp;  <br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/95765755"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1215789972.gif" /></a><br /><br />個人覺的ppm可取之處就是他有列出模組在cpan的網址,這對user而言,可以直按連過去看此模組的內容,還挺方便的<br />對每個模組的用法,在Abstract 的部份有簡單說明此模組的用法,也是很好的設計  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19821061">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19821061#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19812654</id>
    <title><![CDATA[在Window開發與執行Perl 程式]]></title>
    <updated>2008-07-11T01:10:48+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19812654"/>
    <summary><![CDATA[在Windows上面若要開發perl程式,這裡推薦使用ActivePerl,安裝這軟體是相當簡單的我都是用他預設值,一直按下一步就安裝好了.這裡不多作說明在安裝好之後,請進入Dos模式,可以用perl -v 來查看你安裝perl的版本其它的都和在linux 上面執行perl 的方式相同看一下我的perl版本畫面 上面有我安裝的版本5.8.8 ,有這個畫面表示Perl己安裝成功了,接下來就可以開始玩Perl囉 ~~&nbsp;This is perl, v5.8.8 built for MSWin32-x86-multi-thread(with 18 registered patches, see perl -V for more detail)Copyright 1987-2007, Larry WallBinary build 822 [280952] provided by ActiveState http://www.ActiveState.comBuilt Jul 31 2007 19:34:48Perl may be copied only under the terms of either the Artistic License or theGNU General Public License, which may be found in the Perl 5 source kit.Complete documentation for Perl, including FAQ lists, should be found onthis system using &quot;man perl&quot; or &quot;perldoc perl&quot;.&nbsp; If you have access to theInternet, point your browser at http://www.perl.org/, the Perl Home Page.ActivePerl的官方網頁在此,請自行下載想要裝的版本]]></summary>
    <content type="html"><![CDATA[在Windows上面若要開發perl程式,這裡推薦使用ActivePerl,安裝這軟體是相當簡單的<br />我都是用他預設值,一直按下一步就安裝好了.這裡不多作說明<br />在安裝好之後,請進入Dos模式,可以用perl -v 來查看你安裝perl的版本<br />其它的都和在linux 上面執行perl 的方式相同<br />看一下我的perl版本畫面 上面有我安裝的版本5.8.8 ,有這個畫面表示Perl己安裝成功了,接下來就可以開始玩Perl囉 ~~<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">&nbsp;This is perl, v5.8.8 built for MSWin32-x86-multi-thread</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">(with 18 registered patches, see perl -V for more detail)</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Copyright 1987-2007, Larry Wall</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Binary build 822 [280952] provided by ActiveState http://www.ActiveState.com</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Built Jul 31 2007 19:34:48</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Perl may be copied only under the terms of either the Artistic License or the</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">GNU General Public License, which may be found in the Perl 5 source kit.</span><br style="background-color: rgb(0, 0, 0);" /><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Complete documentation for Perl, including FAQ lists, should be found on</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">this system using &quot;man perl&quot; or &quot;perldoc perl&quot;.&nbsp; If you have access to the</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">Internet, point your browser at http://www.perl.org/, the Perl Home Page.</span><br style="background-color: rgb(0, 0, 0);" /></font><br />ActivePerl的官方<a href="javascript:void(0);/*1215774745388*/">網頁在此</a>,請自行下載想要裝的版本<br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19812654">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19812654#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19695741</id>
    <title><![CDATA[Perl:讀寫檔案的方法]]></title>
    <updated>2008-07-08T18:36:22+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19695741"/>
    <summary><![CDATA[Perl:讀檔案本文簡單說明perl 對檔案的開啟和寫資料到檔案的方法假設有一個檔案名為abc.txt,而abc.txt 的內容如下line 1 line 2 line 3 讀檔的範例如下:這樣可以把abc.txt從第一行讀到最後一行 open(open_file,&quot;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; while(&lt;open_file&gt;){&nbsp;&nbsp;&nbsp; chomp ; &nbsp;&nbsp;&nbsp; print &quot;$_\n&quot; ; }perl 對檔案的寫檔有二種方式,一種是建立新檔並寫入資料範例如下 這樣abc.txt的內容就是:this is add data info,原本abc.txt的內容會被清掉,然後把$info的資料寫到檔案當中open(write_file,&quot;&gt;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; my $info=&quot;this is add data info&quot; ; print write_file &quot;$info&quot; ; 而複寫資料到檔案的檔案如下執行完上面的程式之後,再執行下面的程式,abc.txt的內容就會有二行相同的資料open(append_file,&quot;&gt;&gt;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; my $info=&quot;this is add data info&quot; ; print write_file &quot;$info&quot; ; 對檔案的處理,對於所建立的物件在不處理時,要有關掉的習慣方法如下close(object_name) 從上面的範例就是要close(write_file) 和close(append_file)以上就是perl 處理檔案的方法]]></summary>
    <content type="html"><![CDATA[Perl:讀檔案<br />本文簡單說明perl 對檔案的開啟和寫資料到檔案的方法<br />假設有一個檔案名為abc.txt,而abc.txt 的內容如下<br />line 1 <br />line 2 <br />line 3 <br /><br />讀檔的範例如下:這樣可以把abc.txt從第一行讀到最後一行 <br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">open(open_file,&quot;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">while(&lt;open_file&gt;)</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">{</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp; chomp ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp; print &quot;$_\n&quot; ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">}</span><br /></font><br />perl 對檔案的寫檔有二種方式,一種是建立新檔並寫入資料<br />範例如下 <br />這樣abc.txt的內容就是:this is add data info,原本abc.txt的內容會被清掉,然後把$info的資料寫到檔案當中<br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">open(write_file,&quot;&gt;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">my $info=&quot;this is add data info&quot; ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">print write_file &quot;$info&quot; ; </span><br /><br /></font><br />而複寫資料到檔案的檔案如下<br />執行完上面的程式之後,再執行下面的程式,abc.txt的內容就會有二行相同的資料<br /><font color="#ffffff" style="background-color: rgb(0, 0, 0);">open(append_file,&quot;&gt;&gt;abc.txt&quot;) or&nbsp; &quot;open file error&quot; ; <br />my $info=&quot;this is add data info&quot; ; <br />print write_file &quot;$info&quot; ; </font><br /><br />對檔案的處理,對於所建立的物件在不處理時,要有關掉的習慣<br />方法如下<br /><font color="#ffffff" style="background-color: rgb(0, 0, 0);">close(object_name) </font><br />從上面的範例就是要close(write_file) 和close(append_file)<br />以上就是perl 處理檔案的方法<br /><br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19695741">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19695741#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19640750</id>
    <title><![CDATA[Perl:Net::Ping;簡介與範例]]></title>
    <updated>2008-07-07T16:22:58+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19640750"/>
    <summary><![CDATA[Net::Ping 模組可以用來檢查remote 主機是不還活著,當然remote host的ping是要開著才能使用以下的範例Net::Ping 可以在此下載看完了上面的文章後,寫了這個sample來測試一下此model的功能以下的範例只是測試了remote host 是否有反應 . $ip 請輸人你要測試的主機ip 這樣即可測試了 use Net::Ping ;my $ip =&quot;&quot; ; my $p = Net::Ping-&gt;new( &quot;icmp&quot;, 1, 64 );if ( $p-&gt;ping($ip) ){&nbsp;&nbsp;&nbsp; print &quot;$ip answered\n&quot;;}else{&nbsp;&nbsp;&nbsp; print &quot;$ip did not answer\n&quot;;}$p-&gt;close();]]></summary>
    <content type="html"><![CDATA[Net::Ping 模組可以用來檢查remote 主機是不還活著,當然remote host的ping是要開著才能使用以下的範例<br />Net::Ping 可以在<a href="http://search.cpan.org/~smpeters/Net-Ping-2.35/lib/Net/Ping.pm">此下載</a><br /><br />看完了上面的文章後,寫了這個sample來測試一下此model的功能<br />以下的範例只是測試了remote host 是否有反應 . $ip 請輸人你要測試的主機ip 這樣即可測試了 <br /><br /><font color="#ffffff"><span style="background-color: rgb(0, 0, 0);">use Net::Ping ;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">my $ip =&quot;&quot; ; </span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">my $p = Net::Ping-&gt;new( &quot;icmp&quot;, 1, 64 );</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">if ( $p-&gt;ping($ip) )</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">{</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp; print &quot;$ip answered\n&quot;;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">}</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">else</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">{</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp; print &quot;$ip did not answer\n&quot;;</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">}</span><br style="background-color: rgb(0, 0, 0);" /><span style="background-color: rgb(0, 0, 0);">$p-&gt;close();</span><br style="background-color: rgb(0, 0, 0);" /></font>  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19640750">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19640750#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/19087502</id>
    <title><![CDATA[Linux:Flash install and Demo]]></title>
    <updated>2008-06-24T23:06:38+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/19087502"/>
    <summary><![CDATA[在重新安 裝的Firefox 3上面看不到flash的影片 google一下這個package的安裝方法並記錄下來下載http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux%20rpm%20-ivh%20flash-plugin-9.0.124.0-release.i386.rpm請到上面的網站,找你相要安裝的檔案類別以下用最簡單的方法rpm安裝rpm -ivh file_name 安裝畫面如下 Preparing...                ########################################### [100%]    1:flash-plugin           ########################################### [100%]這樣就安裝好了 可以看flash的網頁Demo一下第一張是不能看到flash的網面  第二張就可以看到了.圖一圖二]]></summary>
    <content type="html"><![CDATA[在重新安 裝的Firefox 3上面看不到flash的影片 <br />google一下這個package的安裝方法並記錄下來<br />下載<br />http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux%20rpm%20-ivh%20flash-plugin-9.0.124.0-release.i386.rpm<br />請到上面的網站,找你相要安裝的檔案類別<br />以下用最簡單的方法rpm安裝<br />rpm -ivh file_name <br />安裝畫面如下 <br /><br />Preparing...                ########################################### [100%]    <br />1:flash-plugin           ########################################### [100%]<br />這樣就安裝好了 <br />可以看flash的網頁Demo一下<br />第一張是不能看到flash的網面 <br /> 第二張就可以看到了.<br />圖一<br /><br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/94072209"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1214359908.png" /></a><br />圖二<br /><a target="_blank" href="http://www.pixnet.net/photo/yuanann/94072171"><img border="0" src="http://p7.p.pixnet.net/albums/userpics/7/5/142075/1214359836.png" /></a><br /><br /><br /><br /><br /><br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/19087502">(繼續閱讀...)</a></div>]]></content>
    <category term="電腦軟體(Linux)"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/19087502#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18984328</id>
    <title><![CDATA[Linux:FTP Server (Vsftp)設定 ]]></title>
    <updated>2008-06-21T23:06:25+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18984328"/>
    <summary><![CDATA[我安裝在FC9的vsftp server 在install 好之後,第一次要登入時ftp server時出現了以下訊息331 Please specify the password.Password:500 OOPS: cannot change directory:/home/xxxxLogin failed.&nbsp;發現要做下面的更動才能成功登入請用root 更改 /etc/selinux/config 這個file &nbsp; 把SELINUX更成下面的內容SELINUX=disabled更改之後要重新開機而我記的FC8在安裝的過程會詢問SELINUX是否要Enable or Disable 但在FC9 是沒有詢問這個Option的]]></summary>
    <content type="html"><![CDATA[<p>我安裝在FC9的vsftp server 在install 好之後,第一次要登入時ftp server時出現了以下訊息<br />331 Please specify the password.<br />Password:<br />500 OOPS: cannot change directory:/home/xxxx<br />Login failed.<br /><br />&nbsp;發現要做下面的更動才能成功登入<br />請用root 更改 /etc/selinux/config 這個file <br />&nbsp; 把SELINUX更成下面的內容<br />SELINUX=disabled<br />更改之後要重新開機<br />而我記的FC8在安裝的過程會詢問SELINUX是否要Enable or Disable <br />但在FC9 是沒有詢問這個Option的<br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18984328">(繼續閱讀...)</a></div>]]></content>
    <category term="Linux"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18984328#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18909148</id>
    <title><![CDATA[Perl:Find::File簡介與範例]]></title>
    <updated>2008-06-19T18:22:05+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18909148"/>
    <summary><![CDATA[這個模組可以用來找特定目錄裡的檔案,簡單說明安裝和使用方法下載 此模組在此下載安裝把此模組下載,解開之後看了一下README&nbsp; 裡面有安裝方法安裝指令如下#./Configure #之後會進入安裝模式,有些問是要回答,我是狂按Enter就安裝好了#make test#make install範例#!/bin/perl #This sample find the file name :abc in current directory, if find print Found info use File::Find ;$File::Find::name =&quot;abc&quot; ;find (\&amp;list,&quot;.&quot;) ;sub list {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next if ($_ eq &quot;.&quot;) ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (-e $File::Find::name)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Found $File::Find::name\n&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }else&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Didn't find $File::Find::name\n&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }}]]></summary>
    <content type="html"><![CDATA[<br />這個模組可以用來找特定目錄裡的檔案,簡單說明安裝和使用方法<br />下載 此模組<a href="http://search.cpan.org/~tty/kurila-1.11_0/lib/File/Find.pm">在此下載</a><br /><br />安裝<br />把此模組下載,解開之後看了一下README&nbsp; 裡面有安裝方法<br />安裝指令如下<br />#./Configure <br />#之後會進入安裝模式,有些問是要回答,我是狂按Enter就安裝好了<br />#make test<br />#make install<br />範例<br />#!/bin/perl <br />#This sample find the file name :abc in current directory, if find print Found info <br />use File::Find ;<br />$File::Find::name =&quot;abc&quot; ;<br />find (\&amp;list,&quot;.&quot;) ;<br />sub list <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next if ($_ eq &quot;.&quot;) ;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (-e $File::Find::name)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Found $File::Find::name\n&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Didn't find $File::Find::name\n&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />}<br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18909148">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18909148#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18866318</id>
    <title><![CDATA[Linux :更改主機名稱的方法]]></title>
    <updated>2008-06-18T11:57:29+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18866318"/>
    <summary><![CDATA[FC 安裝後的hostname 預設是localhost.localhost 看起來很不順眼上網找一下更改的方法,順使記錄起來,方法如下 vi /etc/sysconfig/network 第二行就是要改的host name]]></summary>
    <content type="html"><![CDATA[FC 安裝後的hostname 預設是localhost.localhost 看起來很不順眼<br />上網找一下更改的方法,順使記錄起來,方法如下 <br />vi /etc/sysconfig/network <br />第二行就是要改的host name<br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18866318">(繼續閱讀...)</a></div>]]></content>
    <category term="Linux"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18866318#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18552285</id>
    <title><![CDATA[Perl:SSH 安裝與簡範說明]]></title>
    <updated>2008-06-09T19:57:31+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18552285"/>
    <summary><![CDATA[因為有need用ssh連到別的主機做些指令,原本可以用expect來處理的,但看到perl 有ssh 和telnet 二個模組可以用,就想用ssh來做這樣的功能首先要安裝Net::SSH::Perl這個模組, 用下面指令install 下載SSH模組請按此 #tar xvf Net-SSH-Perl-1.30.tar.gz#cd Net-SSH-Perl-1.30#perl Makefile.PL之後會出現以下畫面 This is Net::SSH::Perl.As of version 1.00, Net::SSH::Perl supports both the SSH1 andSSH2 protocols natively. The two protocols have differentmodule prerequisitives, so you need to decide which protocol(s)you plan to use. If you use one or the other, only those modulesfor your chosen protocol will be installed; if you choose both,all of the supporting modules will be installed. Please choosethe protocols you'd like to use from the following list (&quot;Both&quot;is the default).&nbsp;&nbsp;&nbsp; [1] SSH1&nbsp;&nbsp;&nbsp; [2] SSH2&nbsp;&nbsp;&nbsp; [3] Both SSH1 and SSH2Which protocol(s) do you plan to use? [3] 3Some of the Net::SSH::Perl ciphers depend on a Crypt:: module fromCPAN. You may already have the necessary modules installed, in whichcase you don't need to bother with this step. Otherwise you'll needto install at least one cipher to use Net::SSH::Perl. Please chooseat least one from the following list (Crypt::IDEA is the default).&nbsp;&nbsp;&nbsp; [1] IDEA&nbsp;&nbsp;&nbsp; [2] DES&nbsp;&nbsp;&nbsp; [3] DES3&nbsp;&nbsp;&nbsp; [4] Blowfish&nbsp;&nbsp;&nbsp; [5] RC4Enter your choices, separated by spaces: [1] 1Checking for optional modulesDigest::BubbleBabble is required if you want to generate bubble babblekey fingerprints with pssh-keygen.Would you like to install it? (y/n) [y]Crypt::RSA is required if you wish to use the ssh-rsa publickey algorithm (ssh-dss is used by default).Would you like to install it? (y/n) [y]Checking if your kit is complete...Looks goodWarning: prerequisite Convert::PEM 0.05 not found.Warning: prerequisite Crypt::DH 0.01 not found.Warning: prerequisite Crypt::DSA 0.11 not found.Warning: prerequisite Crypt::IDEA 0 not found.Warning: prerequisite Crypt::RSA 1.37 not found.Warning: prerequisite Digest::BubbleBabble 0.01 not found.Warning: prerequisite Digest::HMAC_MD5 0 not found.Warning: prerequisite Digest::HMAC_SHA1 0 not found.Warning: prerequisite Digest::SHA1 2.10 not found.Warning: prerequisite Math::GMP 1.04 not found.Warning: prerequisite Math::Pari 2.001804 not found.Writing Makefile for Net::SSH::Perl以上訊息表示上面的模組都要裝 可以用 cpan -i model_name 去處理全裝好後再下#perl Makefile.PL #make#make install 這樣就安裝好了以下用簡單的sample來說明 ssh模組的用法用codes來說明use Net::SSH::Perl ;my $ssh = Net::SSH::Perl-&gt;new(&quot;IP_address&quot;);$ssh-&gt;login(&quot;username&quot;, &quot;passord&quot;);#要執行的指令寫在此即可$ssh-&gt;cmd(&quot;touch abc.txt&quot;);]]></summary>
    <content type="html"><![CDATA[因為有need用ssh連到別的主機做些指令,原本可以用expect來處理的,但看到perl 有ssh 和telnet 二個模組可以用,就想用ssh來做這樣的功能<br />首先要安裝Net::SSH::Perl這個模組, 用下面指令install <br />下載SSH模組請<a href="http://search.cpan.org/dist/Net-SSH-Perl/lib/Net/SSH/Perl.pm">按此</a> <br />#tar xvf Net-SSH-Perl-1.30.tar.gz<br />#cd Net-SSH-Perl-1.30<br />#perl Makefile.PL<br />之後會出現以下畫面 <br />This is Net::SSH::Perl.<br /><br />As of version 1.00, Net::SSH::Perl supports both the SSH1 and<br />SSH2 protocols natively. The two protocols have different<br />module prerequisitives, so you need to decide which protocol(s)<br />you plan to use. If you use one or the other, only those modules<br />for your chosen protocol will be installed; if you choose both,<br />all of the supporting modules will be installed. Please choose<br />the protocols you'd like to use from the following list (&quot;Both&quot;<br />is the default).<br /><br />&nbsp;&nbsp;&nbsp; [1] SSH1<br />&nbsp;&nbsp;&nbsp; [2] SSH2<br />&nbsp;&nbsp;&nbsp; [3] Both SSH1 and SSH2<br /><br />Which protocol(s) do you plan to use? [3] 3<br /><br />Some of the Net::SSH::Perl ciphers depend on a Crypt:: module from<br />CPAN. You may already have the necessary modules installed, in which<br />case you don't need to bother with this step. Otherwise you'll need<br />to install at least one cipher to use Net::SSH::Perl. Please choose<br />at least one from the following list (Crypt::IDEA is the default).<br /><br /><br /><br /><br /><br />&nbsp;&nbsp;&nbsp; [1] IDEA<br />&nbsp;&nbsp;&nbsp; [2] DES<br />&nbsp;&nbsp;&nbsp; [3] DES3<br />&nbsp;&nbsp;&nbsp; [4] Blowfish<br />&nbsp;&nbsp;&nbsp; [5] RC4<br /><br />Enter your choices, separated by spaces: [1] 1<br /><br />Checking for optional modules<br /><br />Digest::BubbleBabble is required if you want to generate bubble babble<br />key fingerprints with pssh-keygen.<br /><br />Would you like to install it? (y/n) [y]<br /><br />Crypt::RSA is required if you wish to use the ssh-rsa public<br />key algorithm (ssh-dss is used by default).<br /><br />Would you like to install it? (y/n) [y]<br /><br />Checking if your kit is complete...<br />Looks good<br />Warning: prerequisite Convert::PEM 0.05 not found.<br />Warning: prerequisite Crypt::DH 0.01 not found.<br />Warning: prerequisite Crypt::DSA 0.11 not found.<br />Warning: prerequisite Crypt::IDEA 0 not found.<br />Warning: prerequisite Crypt::RSA 1.37 not found.<br />Warning: prerequisite Digest::BubbleBabble 0.01 not found.<br />Warning: prerequisite Digest::HMAC_MD5 0 not found.<br />Warning: prerequisite Digest::HMAC_SHA1 0 not found.<br />Warning: prerequisite Digest::SHA1 2.10 not found.<br />Warning: prerequisite Math::GMP 1.04 not found.<br />Warning: prerequisite Math::Pari 2.001804 not found.<br />Writing Makefile for Net::SSH::Perl<br /><br />以上訊息表示上面的模組都要裝 <br />可以用 cpan -i model_name 去處理<br />全裝好後再下<br />#perl Makefile.PL <br />#make<br />#make install <br />這樣就安裝好了<br /><br /><br />以下用簡單的sample來說明 ssh模組的用法<br />用codes來說明<br /><br />use Net::SSH::Perl ;<br />my $ssh = Net::SSH::Perl-&gt;new(&quot;IP_address&quot;);<br />$ssh-&gt;login(&quot;username&quot;, &quot;passord&quot;);<br />#要執行的指令寫在此即可<br />$ssh-&gt;cmd(&quot;touch abc.txt&quot;);<br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18552285">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18552285#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18364322</id>
    <title><![CDATA[Perl:Test模組簡介]]></title>
    <updated>2008-06-04T12:55:17+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18364322"/>
    <summary><![CDATA[安裝Test 模組#cpan -i TestTest模組能處理的檔案屬性(attribute)請參考http://www.cs.cf.ac.uk/Dave/PERL/node69.html我寫一個測試用的script 來說明#!/bin/perl#檢查/tmp/abc.txt 是否為空檔#執行前先要有要測試的檔案 ex:/tmp/abc.txtuse Test;if ( -s &quot;/tmp/abc.txt&quot; ){&nbsp;&nbsp;&nbsp; print &quot; file size more then 0 \n&quot;;}else{&nbsp;&nbsp;&nbsp; print &quot;file size is 0\n&quot;;}&nbsp;]]></summary>
    <content type="html"><![CDATA[安裝Test 模組<br />#cpan -i Test<br />Test模組能處理的檔案屬性(attribute)請參考<br />http://www.cs.cf.ac.uk/Dave/PERL/node69.html<br />我寫一個測試用的script 來說明<br />#!/bin/perl<br />#檢查/tmp/abc.txt 是否為空檔<br />#執行前先要有要測試的檔案 ex:/tmp/abc.txt<br />use Test;<br />if ( -s &quot;/tmp/abc.txt&quot; )<br />{<br />&nbsp;&nbsp;&nbsp; print &quot; file size more then 0 \n&quot;;<br /><br />}<br />else<br />{<br />&nbsp;&nbsp;&nbsp; print &quot;file size is 0\n&quot;;<br />}<br /><br />&nbsp;<br /><br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18364322">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18364322#comments</wfw:comment>
  </entry>
  <entry xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <id>http://yuanann.pixnet.net/blog/post/18360623</id>
    <title><![CDATA[Perl:CPAN在linux上的安裝]]></title>
    <updated>2008-06-04T09:39:28+08:00</updated>
    <link rel="alternate" href="http://yuanann.pixnet.net/blog/post/18360623"/>
    <summary><![CDATA[本文簡介cpan在linux 上面的安裝 請用yum 指令安裝cpan 指令如下請用root執行以下指令#yum -y install cpan完成後會有以下訊息 Installed: perl-CPAN.i386 0:1.76_02-39.fc8Complete!第一次啟動cpan#capn We have to reconfigure CPAN.pm due to following uninitialized parameters:cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata/usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.再來會進入互動模式都是簡單的英文,這裡就不說明了最後出現以下訊息表示設定成功囉commit: wrote /usr/lib/perl5/5.8.8/CPAN/Config.pmTerminal does not support AddHistory.cpan shell -- CPAN exploration and modules installation (v1.7602)ReadLine support available (try 'install Bundle::CPAN')這會進入CPAN的shell ,這裡可以安裝你想要的模組 cpan&gt; ]]></summary>
    <content type="html"><![CDATA[本文簡介cpan在linux 上面的安裝 <br />請用yum 指令安裝cpan 指令如下<br />請用root執行以下指令<br />#yum -y install cpan<br />完成後會有以下訊息 <br />Installed: perl-CPAN.i386 0:1.76_02-39.fc8<br />Complete!<br /><br />第一次啟動cpan<br />#capn <br />We have to reconfigure CPAN.pm due to following uninitialized parameters:<br /><br />cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata<br /><br />/usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.<br />再來會進入互動模式<br />都是簡單的英文,這裡就不說明了<br />最後出現以下訊息表示設定成功囉<br />commit: wrote /usr/lib/perl5/5.8.8/CPAN/Config.pm<br />Terminal does not support AddHistory.<br /><br />cpan shell -- CPAN exploration and modules installation (v1.7602)<br />ReadLine support available (try 'install Bundle::CPAN')<br />這會進入CPAN的shell ,這裡可以安裝你想要的模組 <br />cpan&gt; <br /><br />  <div class="more"><a href="http://yuanann.pixnet.net/blog/post/18360623">(繼續閱讀...)</a></div>]]></content>
    <category term="Perl"/>
    <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://yuanann.pixnet.net/blog/post/18360623#comments</wfw:comment>
  </entry>
</feed>
