Phoenix.pm: Net::Telnet
Matt Alexander
m at pdxlug.org
Wed Jan 14 10:10:25 CST 2004
On Wed, 14 Jan 2004, David A. Sinck wrote:
>
>
> \_ SMTP quoth Matt Alexander on 1/14/2004 07:06 as having spake thusly:
> \_
> \_ I'm trying to use Net::Telnet to connect to a device that simply outputs
> \_ data after a connection is made. There's no prompt and there's no
> \_ indication of when it's done sending data, however I know that after about
> \_ 10 seconds that I should have received all the data that was available. I
> \_ then want to save all the output from this device to a log file.
> \_
> \_ I think the problem with my script is that it's looking for a prompt from
> \_ the device. I've tried setting Prompt => undef and Prompt => "", but
> \_ these both generate warnings and I never retrieve any data.
>
> Why not go with one of the Socket modules or with building your own
> sockets?
Because I was looking for the easy way out... ;-)
More information about the Phoenix-pm
mailing list