<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Who am I? &#187; Shell编程</title>
	<atom:link href="http://blog.sunliguo.com/archives/category/linux/shell-programming/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.sunliguo.com</link>
	<description>I&#039;m sunliguo.</description>
	<lastBuildDate>Sun, 01 Jan 2012 03:16:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>expect</title>
		<link>http://blog.sunliguo.com/archives/expect.html</link>
		<comments>http://blog.sunliguo.com/archives/expect.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:34:31 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell编程]]></category>
		<category><![CDATA[expect]]></category>

		<guid isPermaLink="false">http://blog.sunliguo.com/?p=1032</guid>
		<description><![CDATA[<p>在写一些shell脚本的时候，经常会遇到需要用户输入密码的交互情况。</p><p>例如在用rsync备份的时候，如果没有假设rsync服务器端，需要用到ssh+rsync备份，没有提供输入密码的选项。上网上查了一下，有个expct的交互程序。</p><p>expect也够复杂的，起码在我看来是这样。先找个可以输入密 <span class='read-more'><a href='http://blog.sunliguo.com/archives/expect.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2F2011-02-27-2.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fexpect.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">机房被淹</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fgood_learning_linux_website.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fexpect.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">发现一个学习linux的好网站！@</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fwordpress-cms.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fexpect.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress 变为CMS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fchina-unicom.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fexpect.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">联通</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/expect.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell 笔记</title>
		<link>http://blog.sunliguo.com/archives/shell-note.html</link>
		<comments>http://blog.sunliguo.com/archives/shell-note.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 02:19:18 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.sunliguo.com/?p=944</guid>
		<description><![CDATA[<p>1：保存命令的结果</p><p>$(ls -l /) 或者 `ls -l /`</p><p>2：判断 [[]] 与 []</p><p>[ -z $(ls -l /)] 或者</p><p>test</p><p>一个目录是否为空： [[ -z $(ls /a)]]&#124;&#124;&#038;&echo empty&#124;&#124; echo "not empty" </p><p>3：$ <span class='read-more'><a href='http://blog.sunliguo.com/archives/shell-note.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fgeneric-shell-script-compiler.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-note.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">shell 脚本加密</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-parameter-substitution.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-note.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">shell 参数替换</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-note.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">字符编码转换的脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-note.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">我要自己动手做个网站</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/shell-note.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>字符编码转换的脚本</title>
		<link>http://blog.sunliguo.com/archives/shell-make-gb-to-utf8.html</link>
		<comments>http://blog.sunliguo.com/archives/shell-make-gb-to-utf8.html#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:07:22 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.sunliguo.com/?p=914</guid>
		<description><![CDATA[<p>程序中遇到汉字真是麻烦，弄的程序原本是gbk或者是gb2312的。现在服务器上都是utf-8，汉字全是乱码。只好写个shell，来自动转换。</p><p>#!/bin/bash</p><p>for i in $(find $1)</p><p>do</p><p>file $i &#124;grep text 1>/dev/null 2>&#038; <span class='read-more'><a href='http://blog.sunliguo.com/archives/shell-make-gb-to-utf8.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmysql-character-code.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql 字符编码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fencoding.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">字符编码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fepon-mdu-power-supply.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">EPON MDU 供电</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fwindows-backdoor.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows’s backdoor</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/shell-make-gb-to-utf8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell 参数替换</title>
		<link>http://blog.sunliguo.com/archives/shell-parameter-substitution.html</link>
		<comments>http://blog.sunliguo.com/archives/shell-parameter-substitution.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:45:54 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.sunliguo.com/?p=868</guid>
		<description><![CDATA[<p>今天在分析一个shell脚本的时候遇到了一个变量 ${2:15}。经我查阅shell经典参考书ABS后，得到如下解释：</p><p>${var:pos} 变量从位置pos开始扩展。</p><p>说得很抽象，我就自己弄了个例子：</p><p>[root@localhost ~]# a=12345</p><p>[root@loc <span class='read-more'><a href='http://blog.sunliguo.com/archives/shell-parameter-substitution.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-note.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-parameter-substitution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Shell 笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fgeneric-shell-script-compiler.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-parameter-substitution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">shell 脚本加密</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-parameter-substitution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">我要自己动手做个网站</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-make-gb-to-utf8.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fshell-parameter-substitution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">字符编码转换的脚本</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/shell-parameter-substitution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我要自己动手做个网站</title>
		<link>http://blog.sunliguo.com/archives/make-website-with-shell-scripts.html</link>
		<comments>http://blog.sunliguo.com/archives/make-website-with-shell-scripts.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 03:57:27 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.sunliguo.com/?p=824</guid>
		<description><![CDATA[<p>我要自己做个网站，用shell scripts写cgi程序。</p><p>先记录下cgi的环境变量</p><p>CGI Environment Variables</p><p>Environment variables are a series of hidden values that the web server se <span class='read-more'><a href='http://blog.sunliguo.com/archives/make-website-with-shell-scripts.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fnew-site.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新网站</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fnetsite-move.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">网站大转移</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fweb-site-loading-slow.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">网站打开很慢啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fawstats-20110101-20110316-log.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fmake-website-with-shell-scripts.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">网站2011第一季度流量分析</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/make-website-with-shell-scripts.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>山东地区手机号的余额</title>
		<link>http://blog.sunliguo.com/archives/the-blance-of-mobile-in-shandong.html</link>
		<comments>http://blog.sunliguo.com/archives/the-blance-of-mobile-in-shandong.html#comments</comments>
		<pubDate>Mon, 25 May 2009 01:17:39 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.pietty.cn/?p=523</guid>
		<description><![CDATA[<p>从山东移动的官方网站上充值的时候，会提示你的余额还有多少。不管手机号是谁的，只要是山东的号就行。因此想到通过curl提交一个这个表单，来查询某个手机号的余额。</p><p>通过查看提交手机号的表单，有几个是隐藏的控件。提交的POST数据，是通过抓包来获取的。</p><p>下边是一个POST数据的例子：</p><p>m <span class='read-more'><a href='http://blog.sunliguo.com/archives/the-blance-of-mobile-in-shandong.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fkong_long.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fthe-blance-of-mobile-in-shandong.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">恐龙特级克赛号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fqianzi-chinaunicom-chahaoji.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fthe-blance-of-mobile-in-shandong.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">一把钳子，一个查号机</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fphp-refer-url.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fthe-blance-of-mobile-in-shandong.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php 获取跳转过来的url</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fibm-t42-fedora12.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fthe-blance-of-mobile-in-shandong.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IBM-T42安装Fedora12</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/the-blance-of-mobile-in-shandong.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>curl</title>
		<link>http://blog.sunliguo.com/archives/curl.html</link>
		<comments>http://blog.sunliguo.com/archives/curl.html#comments</comments>
		<pubDate>Fri, 15 May 2009 08:28:18 +0000</pubDate>
		<dc:creator>sun</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell编程]]></category>

		<guid isPermaLink="false">http://blog.pietty.cn/?p=340</guid>
		<description><![CDATA[<p>Linux 下的这些小工具实在是太有用了。一个个顺手的工具，用shell脚本连接起来就是个强大的工具。</p><p>curl，居然可以模拟浏览器。</p><p><strong> -b/--cookie </strong>  发送保存的cookie给浏览器。</p><p><strong>-c/--cookie-jar </strong> 保存浏览器发给的cookie。</p><p>#curl -c  <span class='read-more'><a href='http://blog.sunliguo.com/archives/curl.html'>[Read More…]</a></span></p><div class="clear-float"></div>
		<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fhave-a-rest.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fcurl.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">休息一天</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fget-my-passwd.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fcurl.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">终于找到密码了</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fapproves_not_smoothly.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fcurl.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">验收不顺利啊！~</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fabout-me.html&from=http%3A%2F%2Fblog.sunliguo.com%2Farchives%2Fcurl.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">About Me</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://blog.sunliguo.com/archives/curl.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

