<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 10pt;">Be careful! Someone else may 监听你的请求/密码.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: truncatei &lt;truncatei@gmail.com&gt;<br>To: china-pm@pm.org<br>Sent: Wednesday, January 30, 2008 9:47:08 PM<br>Subject: Re: [PerlChina] 求助如何可以读取邮箱中邮件啊<br><br>
Perl可以写服务器程序的,看看IO:Socket模块。<br><ol><li>在服务器上创建一个服务器进程,一直监听来自某个端口的请求</li><li>客户端发起请求,连接到步骤1中使用的端口,连接成功后发送一些数据,比如密码和需要执行的命令</li><li>服务器端收到客户的请求数据,验证密码,通过system调用执行命令,返回状态给客户端,如果可以取到运行后的结果数据,返回数据</li><li>数据传输格式自己定义,客户端和服务器都遵守约定就好<br>
</li></ol><br><div class="gmail_quote">2008/1/31 Steven Zhu &lt;<a rel="nofollow" ymailto="mailto:stevenzyk@gmail.com" target="_blank" href="mailto:stevenzyk@gmail.com">stevenzyk@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>这样的话太麻烦了,你所说的监听这个如何做哪,是否可以提供个思路或者例子啊?</div>
<div>perl不是很熟,呵呵,谢谢!<br></div></blockquote></div><br><br clear="all"><br>-- <br>如果觉得无聊,您不妨访问Google Reader消遣 <a rel="nofollow" target="_blank" href="http://www.google.com/reader/view">http://www.google.com/reader/view</a><br>要尝试黑版本Google,请访问 <a rel="nofollow" target="_blank"
 href="http://www.google.com/custom?q=&amp;sa=Search&amp;client=pub-4021907304270164&amp;forid=1&amp;channel=7519554017&amp;ie=UTF-8&amp;oe=UTF-8&amp;cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&amp;hl=en">http://www.google.com/custom?q=&amp;sa=Search&amp;client=pub-4021907304270164&amp;forid=1&amp;channel=7519554017&amp;ie=UTF-8&amp;oe=UTF-8&amp;cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&amp;hl=en</a>
<!-- kill --><div><br><br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>China-pm 
mailing 
list<br><a ymailto="mailto:China-pm@pm.org" href="mailto:China-pm@pm.org">China-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/china-pm" target="_blank">http://mail.pm.org/mailman/listinfo/china-pm</a></div></div><br></div></div></body></html>