Hi Ewen,
On Mon, Dec 19, 2011 at 8:16 AM, Ewen McNeill
Hi Blair,
I've found in the past that Debian compile their Quagga with flags that cause the output to be paginated (through "less" IIRC, but possibly through "default-pager" which is a symlink to your choice), and when I needed to automate it, I had to explicitly override that setting in the runtime environment, eg:
TCL/Expect: set env(VTYSH_PAGER) /bin/cat Bourne Shell: VTYSH_PAGER=/bin/cat; export VTYSH_PAER
Thanks, that works great for the command line using vtysh, but I think the problem I'm having is unrelated to the pager - the lg script is talking to Quagga over telnet with Net::Telnet and this doesn't seem to suffer from the paging problem. I've made a bit more progress today - there were some regex for waiting for the prompt to return which weren't matching my prompt, so fixed that up. Now it's working OK for small amounts of output, but larger amounts of output just seem to return nothing, I think this is possibly further regex related to how the lg script is processing the output, so might need some changes there too. Might end up rewriting this from scratch myself at this rate :) Cheers Blair