hi everybody,
i am using Net::Telnet module.
it works fine for some users while for others it give this error message:
Timed-out:waiting for command prompt
I think this problem is concern with mounting of home directory of users.
How can i get rid of this problem.
*****************
Thanks in advance
Ashish Srivastava

### Code Sample ##########################
sub TelNet{
       my $obj = new Net::Telnet->new(binmode=>0,
                                     Timeout=>20,                            
           Errmode=>\&err_handle,
Host=>$hostname);
       if ( !defined $obj )
       {
               err_handle("Either $hostname is not exist or Telnet service 
is not on");
       }

       $obj->errmode(\&err_handle);
       $obj->login($username, $password) ;
       my @os = $obj->cmd("uname");
       if ( $os[0] ne 'SunOS' )
       {
               err_handle("The operating system is $os[0]");
       }
}








_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to