本帖最后由 Qinxocy 于 2012-03-28 17:01 编辑
脚本如下:
#!/usr/bin/perl
use strict ;
use warnings;
use Net::SSH::Expect;
open(FH,'<',"/tmp/hosts_list.txt");
while(
by Qinxocy - Linux环境编程 - 2012-03-29 12:49:07 阅读(2101) 回复(1)
如何用 POP3 命令,直接在服务器上操作邮件? 如何用 SMTP 命令,远程登录到服务器上发送邮件? 端口测试: # telnet mail.easy.com 25 (测试25端口) Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 mail.easy.com ESMTP Postfix quit 221 Bye Connection closed by foreign host. # telnet mail.easy.com 110 (测试110端口) Trying 127.0.0.1... Connected to localho...