Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 09-24-2019, 02:20 PM
BjoernH BjoernH is offline
Registered User
Join Date: Mar 2018
Posts: 55
How would I send multiple spacebar strokes when doing a 'more' pipe?

Good day.

How would one send multiple spacebar strokes until the end of the file is reached from a 'more <file>' command. Please note, there is no option to cat the entire file, the only way is to hit the spacebar until the end of the file is reached.

Reply With Quote
Old 09-24-2019, 04:55 PM
berdmann berdmann is offline
VanDyke Technical Support
Join Date: Aug 2017
Posts: 441
Hi BjoernH,

In order to automate the "more-prompts", you would have to effectively send the command, wait for the command to be echoed and then start waiting for either the more-prompt or the shell-prompt (so that you will know when the end of the command output is reached).

Can you please give me an example of what your more-prompt and your shell-prompt actually look like?

Can you describe the manual process that you are trying to automate?

We do have an example script in which the handling of more-prompts is shown:


The example starts on line 215 of the "Cisco-SaveDeviceConfigToFile" script.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 05:35 PM.