Hi I am very new to perl. I want to login to a remote machine and check a directory exists or not.
my code:
========
using Net::Telnet;
$t = new Net::Telnet();
$t->open($remote_system);
$t->login($username, $passwd);
# this doesnot work.
if (-d $my_dir) { print "ready to go"; }
$t->close();
=========
Pls help me.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
