But it did not work. I was getting the below error:
        "timed-out waiting for command prompt at <file name> line <line number>"

Thanks & Regards,
Lakshmi
952-833-1220

-----Original Message-----
From: Martin Barth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 2:23 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: Net::Telnet - Variable in Prompt


On Tue, 12 Jun 2007 11:56:12 -0500
"Lakshmi Sailaja" <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Is there a way to use a variable in the Prompt parameter like the below
> line?
>
>  my $telnet = Net::Telnet->new([HOST => "$server",]
>                 [PROMPT => /$prompt/,]);
>
> Thanks & Regards,
> Lakshmi
> 952-833-1220
>
>

hi,

this should work. but the promt is only set once. so if the var changes, the
prompt will remain.

HTH

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to