hi guys,
a question on net::telnet
what does this module do?
cos i have a telnet client that will be able to communicate with a database
so is it true if i enter my ip address, username, and password and using print later again to execute some commands
i will get some results on some screen??
[CODE=perl]
use Net::Telnet;
$telnet3 = new Net::Telnet;
$telnet3->open('IP_ADDRE SS'); # Substituted fake IP
$telnet3->waitfor('/Enter login: $/i');
$telnet3->print('USERNAM E'); # Substituted fake User
$telnet3->waitfor('/Enter password: $/i');
$telnet3->print('PASSWOR D'); # Substituted fake PW
print "Logged in to device\n";
[/CODE]
a question on net::telnet
what does this module do?
cos i have a telnet client that will be able to communicate with a database
so is it true if i enter my ip address, username, and password and using print later again to execute some commands
i will get some results on some screen??
[CODE=perl]
use Net::Telnet;
$telnet3 = new Net::Telnet;
$telnet3->open('IP_ADDRE SS'); # Substituted fake IP
$telnet3->waitfor('/Enter login: $/i');
$telnet3->print('USERNAM E'); # Substituted fake User
$telnet3->waitfor('/Enter password: $/i');
$telnet3->print('PASSWOR D'); # Substituted fake PW
print "Logged in to device\n";
[/CODE]
Comment