ChinaUnix.net
相关文章推荐:

远程登录服务器命令

本帖最后由 Qinxocy 于 2012-03-28 17:01 编辑 脚本如下: #!/usr/bin/perl use strict ; use warnings; use Net::SSH::Expect; open(FH,'<',"/tmp/hosts_list.txt"); while(){ &ssh_modip(chomp($_)); } sub ssh_modip() { my ($old_ip,$old_mask,$old_gw)=(split)[0,1,2]; my $ssh = Net::SSH::Expect->new ( host => $old_ip, passw...

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...

by rickyweiwei - Linux文档专区 - 2005-12-24 21:00:23 阅读(1974) 回复(0)