Z
z0mb1e_fr
I am writing a script to change a router config.
The config is long and the result is that the display stops with a
"--more--".
Normally we type return to go to a new line or the space bar to go to
scroll down a page.
So far I failed to simulate this behaviour with expect.
The program performs a loop with:
....
....
$router->expect($timeout, "-re" , "--More--"))
print $router "\f";
....
....
I tried "\f", "\s", "\f\r", "\r", nothing works.
How can I tell expect to strike the "space bar" ?
Thanks,
Antonin
The config is long and the result is that the display stops with a
"--more--".
Normally we type return to go to a new line or the space bar to go to
scroll down a page.
So far I failed to simulate this behaviour with expect.
The program performs a loop with:
....
....
$router->expect($timeout, "-re" , "--More--"))
print $router "\f";
....
....
I tried "\f", "\s", "\f\r", "\r", nothing works.
How can I tell expect to strike the "space bar" ?
Thanks,
Antonin