Display file text one page at a time, wait 20 seconds, then auto-advance
4
votes
3
answers
563
views
This question is for AIX 7
I have been working on a monitor which will display several pages of text. Initially the end user wanted a scrolling list for which I constructed this:
IFS=''; cat plfeed | while read line; do echo $line; perl -e 'select(undef,undef,undef,.8)'; done
The end user has decided that they would rather display a page (24 lines) of output for a set amount of time (20 seconds for example). I know that more will let me display a page at a time, but it requires keyboard input which is not acceptable for my use-case.
tldr;
How can I automate the 'more' command, or build a similar function that will sleep between pages and then automatically advance?
Asked by Alan
(43 rep)
May 17, 2016, 04:57 PM
Last activity: Mar 3, 2020, 12:31 PM
Last activity: Mar 3, 2020, 12:31 PM