Re: regarding Net::Telnet

2007-02-23 Thread Bill Luebkert
ukhas jean wrote: > Hi Bill, > > the default shell when i login to the linux machine is the korn shell. > I have tried without the escaping of '/' and ' ' (space) ... it still > doesnt work ... ofcourse i tried 'chdir /view' but it reports an error. > (since chdir is not a shell-command). I us

Re: regarding Net::Telnet

2007-02-23 Thread ukhas jean
Hi Bill, the default shell when i login to the linux machine is the korn shell. I have tried without the escaping of '/' and ' ' (space) ... it still doesnt work ... ofcourse i tried 'chdir /view' but it reports an error. (since chdir is not a shell-command). I am stuck at this plac

RE: regarding Net::Telnet

2007-02-23 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 23 February 2007 04:44 To: Active Perl Subject: Re: regarding Net::Telnet > Hi Bill et al ... > > I have connected successfully to my remote linux machine using Net::Telnet and am able to execute comm

Re: regarding Net::Telnet

2007-02-23 Thread Bill Luebkert
ukhas jean wrote: > Hi Bill et al ... > > I have connected successfully to my remote linux machine using > Net::Telnet and am able to execute commands like pwd, ls, who, etc. ... > but ... there is one command that is troubling me ... the "cd" command ... > Sorry to say, but, I cant see it ment

Re: regarding Net::Telnet

2007-02-22 Thread ukhas jean
Hi Bill et al ... I have connected successfully to my remote linux machine using Net::Telnet and am able to execute commands like pwd, ls, who, etc. ... but ... there is one command that is troubling me ... the "cd" command ... Sorry to say, but, I cant see it mentioned in documentation

Re: regarding Net::Telnet

2007-02-21 Thread angelos
If you cannot ping id01 from the command line then you have resolver troubles ukhas jean wrote: > Hi all ... had a problem executing this script which tries to run a > "who" command on a unix host id01. > > use Net::Telnet; > > my $host = "id01"; ___

Re: regarding Net::Telnet

2007-02-20 Thread Bill Luebkert
ukhas jean wrote: > no ... its id01 and not idl01 ... sorry made a typo!!! The suggestion to try the IP address is also a good idea. I ran your script to localhost with a telnet daemon running on XP and it worked fine (I used a different command than who and commented out the improper Ctrl-C), bu

RE: regarding Net::Telnet

2007-02-20 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 20 February 2007 08:05 To: Active Perl Subject: regarding Net::Telnet > Hi all ... had a problem executing this script which tries to run a "who" command on a unix host id01. > 'use strict; u

Re: regarding Net::Telnet

2007-02-20 Thread ukhas jean
no ... its id01 and not idl01 ... sorry made a typo!!! Bill Luebkert <[EMAIL PROTECTED]> wrote: ukhas jean wrote: > Hi all ... had a problem executing this script which tries to run a > "who" command on a unix host id01. > > use Net::Telnet; > > my $host = "id01"; > my $port = "1800"; > my $t

Re :regarding Net::Telnet

2007-02-20 Thread sandeep s kumar
  Hi ,  why don\'t you try this code and see ..$t = new Net::Telnet (Timeout => 1000, Prompt => ); $username=\"*\"; $password=\"**\"; $t->open(\"id01\"); $t->login($username, $password);regards,sandeep s kumarukhas jean wroteHi all ... had a problem executing this script which tri

Re: regarding Net::Telnet

2007-02-20 Thread Bill Luebkert
ukhas jean wrote: > Hi all ... had a problem executing this script which tries to run a > "who" command on a unix host id01. > > use Net::Telnet; > > my $host = "id01"; > my $port = "1800"; > my $t = new Net::Telnet (Timeout => 10); > $t->open(Host => $host, Port => $port); > $t->login("abc",

regarding Net::Telnet

2007-02-20 Thread ukhas jean
Hi all ... had a problem executing this script which tries to run a "who" command on a unix host id01. use Net::Telnet; my $host = "id01"; my $port = "1800"; my $t = new Net::Telnet (Timeout => 10); $t->open(Host => $host, Port => $port); $t->login("abc", "123"); my @lines = $t->cmd(