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 = new Net::Telnet (Timeout => 10);
> $t->open(Host => $host, Port => $port);
> $t->login("abc", "123");
> my @lines = $t->cmd("^C");
> my @lines = $t->cmd("who");
> print "@lines";
> Its giving me this error:-
> unknown remote host: idl01 at test.pl line 5
Why is it saying 'idl01' instead of 'id01' ? Is $host correct ?
Is there something in the services file for id01 ?
> Any idea why this may be happening?? the host id01 can be reached if I
> do a manual "telnet id01" from start->run.
> when i do a manual "telnet id01", there is a script that runs from
> .profile file ... its by default ... i dont want to run that script ...
> hence the use of Ctrl-C or ^C.
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs