I don't know of a command that will allow you to do that. If you pipe the output to more or page commands, you won't have the option to hit return to go back to the original menu. That may be enough though. If they know to hit q they will break out and return to the menu. Otherwise you can redirect the output from the commands to a temp file and use a while loop to echo a number of lines, maybe 25 or so and give the prompt to either page forward or quit. I'm sure that someone has a better idea. Good luck. If you need help, just post. I've written scripts similar to this.


Reply With Quote
Bookmarks