Re: checking a directory in a remote system using perl

2010-07-16 Thread C.DeRykus
On Jul 14, 7:16 am, soorajspadmanab...@gmail.com (Sooraj S) wrote: >  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, $p

Re: checking a directory in a remote system using perl

2010-07-15 Thread Chas. Owens
On Thu, Jul 15, 2010 at 06:12, Sooraj S wrote: snip >> Opening a telnet connection does not mean that Perl code will run on >> the remote system.  You should also not be using telnet as it is very >> insecure.  Look up ssh, configure your ssh keys, and try something snip >  Thanks for your reply.

Re: checking a directory in a remote system using perl

2010-07-15 Thread Jim Gibson
> Hi, > Thanks for your reply. Actually i need to login to a remote machine > and do some series of steps including creating,editing and taring some > files and executing some other scripts..The remote machine is in our > local network itself..so there is no security issues and thats why i > am us

Re: checking a directory in a remote system using perl

2010-07-15 Thread Sooraj S
On Jul 15, 4:57 am, chas.ow...@gmail.com ("Chas. Owens") wrote: > On Wed, Jul 14, 2010 at 10:16, Sooraj S wrote: > >  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::Teln

Re: checking a directory in a remote system using perl

2010-07-14 Thread Chas. Owens
On Wed, Jul 14, 2010 at 10:16, Sooraj S wrote: >  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