in reply to Can't get $ from Net::Telnet

I was attempting something similar to read back configuration files from Netscreen firewalls a few years ago and I seem to recall as outlined in the docs....@vacation_str=$telnet->cmd; will output your command and then read the characters sent back up to and including the matching prompt. Which is not what I think you are trying to accomplish.

You can probably verify what is going on by using dump_log().

I would also check out attempting something like

$telnet->cmd("$CAT /home/$username/.vacation.msg"); @vacation_str=$telnet->getlines();
which should read back all the lines of data until eof is read.

Replies are listed 'Best First'.
Re: Re: Can't get $ from Net::Telnet
by JoeJaz (Monk) on Jun 27, 2003 at 14:47 UTC
    Thank you for your advice. I will look into recieving input in that fashion. This is one of my last few stumbling blocks that I have to make it through to finish my project :-)
    Thanks, Joe