Re: PS3 select menu to screen and file?
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 07/28/04
- Next message: Rodney: "Re: Date set?"
- Previous message: Dana French: "Re: strict grep when patterns are presented on standard input"
- In reply to: Joshua: "PS3 select menu to screen and file?"
- Next in thread: Dana French: "Re: PS3 select menu to screen and file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 20:17:38 GMT
On 2004-07-28, Joshua wrote:
> I use inbuilt menu functionality with ksh e.g.
>
> PS3="Please select an option > "
> select menu_option in "option 1" "option 2"
> do
> case $menu_option in
>
> "option 1")
> displayAppStartupMenu ;;
>
> "option 2")
> searchUsersLogonMenu ;;
> esac
> done
>
> This outputs a menu to screen and takes care of user input. My
> question is, is it possible to also put this information out to a
> file?
You can use the "script" command to store the entire session in a
file.
Or, write your own menu script (it's not hard); select is a PITA
to use, in any case.
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
===================================================================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Next message: Rodney: "Re: Date set?"
- Previous message: Dana French: "Re: strict grep when patterns are presented on standard input"
- In reply to: Joshua: "PS3 select menu to screen and file?"
- Next in thread: Dana French: "Re: PS3 select menu to screen and file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading