Perlについての質問箱 12箱目
■ このスレッドは過去ログ倉庫に格納されています
0615デフォルトの名無しさん
NGNG【作成したプログラム】
$host = '192.168.x.x';
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 20,
Port => 110,
);
$t->open($host);
@lines = $t->waitfor('/ /');
print @lines;
$t->print("user [email protected]");
@lines = $t->waitfor('/ /');
print @lines;
$t->print("pass xxxxx");
@lines = $t->waitfor('/ /');
print @lines;
@lines = $t->waitfor('/ /');
print @lines;
$t->print("list");
$t->print("quit");
$t->close($host);
■ このスレッドは過去ログ倉庫に格納されています