Stan Huang at Taiwan
Stan Huang at Taiwan

Reputation: 529

How to display file in console page by page in VxWorks?

In VxWorks console, command "copy " can display its content to console. But if the file is too big, I prefer to display it page by page. In Linux or Windows, I can use " | more" appended to a command to have a shown contents displayed page by page. In VxWorks, how can I do it?

Upvotes: 1

Views: 3281

Answers (1)

mjs
mjs

Reputation: 3005

In a similar way - use more.

This relies on using the vxworks cmd shell, rather than the C interpreter (which is usually the default).

eg:

->cmd
[vxworks *]#ls
bigFile.txt
[vxworks *]#more bigFile.txt

will display:

Long
Block
Of
Text
--- 'q' to quit, any key to continue ----
Yet
More
Text
--- 'q' to quit, any key to continue ----

Upvotes: 2

Related Questions