help, i only been learning tcl for a day now, for the sole purpose of this program, and future networking tasks. So any help would be appreciated
ive written a script using tcl/expect, to telnet onto a cisco reuter and download the ip accounting stats. my problem is that after a page worth of stats is shown, it waits for either a space bar to show the nexts page content, or a return to show the next line. my script works fine, but very slow using the return key, ie /r, but to work properly, it needs the space bar. ive tried /s but it doesnt like it. heres the peice of script in concern:
set temp "y"
while { $temp == "y" } {
expect "More" { set temp y } "#" { set temp "n" }
send "\r" <--------------------
}
help if you can please
ive written a script using tcl/expect, to telnet onto a cisco reuter and download the ip accounting stats. my problem is that after a page worth of stats is shown, it waits for either a space bar to show the nexts page content, or a return to show the next line. my script works fine, but very slow using the return key, ie /r, but to work properly, it needs the space bar. ive tried /s but it doesnt like it. heres the peice of script in concern:
set temp "y"
while { $temp == "y" } {
expect "More" { set temp y } "#" { set temp "n" }
send "\r" <--------------------
}
help if you can please