Prev: FAQ 4.52 How do I sort an array by (anything)?
Next: FAQ 5.35 How do I close a file descriptor by number?
From: Martijn Lievaart on 20 Apr 2010 02:29 On Mon, 19 Apr 2010 10:49:37 -0700, Asterix wrote: > I've made a little script to capture the output of networking devices. > Everything works fine, until I use the "show tech" command in an Cisco > device. > The script does not save anything form the "show tech", but I can see > that the TELNET Session gets back some output. But I can't figure out > how to save this output from "show tech" into a file. > There is no problem with commands which produce smaller output. I don't > want to use the "Net::Telnet:Cisco" Module: There may be a completely other solution. Have a look at rancid and it's clogin command. Maybe rancid already does what you are trying to do. HTH, M4 |