in reply to Re^5: Telnet list of IP and get information stored to a file
in thread Telnet list of IP and get information stored to a file

Roboticus

You may be referring to the print "connected" message, in which case you're not telling it to go to a log file, like you are for the failures.

Indeed i am referring that, more preciously I need to record this as below like a success message, because telnet gives this why the script cann't get this ?

dds_pc: _ms=nodecc.dom.org.localþ_si=Process controllerþ_mid=9016þ_sev +=0þ_dt=2010/07/29þ_tm=01:12:02þ_pkg=þ

but instead the only reply i am getting is ("The server returned: 1") ,

The server returned: 1

The server returned: 1

The server returned: 1

Bad connection - Unable to connect to IP 3.xx.yy.zz at -------------------

Bad connection - Unable to connect to IP 3.xxx.yyy.zz at -------------------

Bad connection - Unable to connect to IP 3.xxx.yyy.y at --------------------

  • Comment on Re^6: Telnet list of IP and get information stored to a file

Replies are listed 'Best First'.
Re^7: Telnet list of IP and get information stored to a file
by rowdog (Curate) on Aug 01, 2010 at 11:26 UTC
    but instead the only reply i am getting is ("The server returned: 1")

    That's because you're using the $telnet->put method which returns 1 on success. I think you want my @output = $telnet->cmd which will give you the output from the server.