- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Menu script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 08:34 AM
тАО09-27-2004 08:34 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 09:48 AM
тАО09-27-2004 09:48 AM
SolutionCertainly, it's just a matter of writing a program in your favourite language. You'd need to give more detail on exactly what you're trying to achieve to give a more detailed answer.
Is you attachment the interface you want to implement or just an example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 10:07 AM
тАО09-27-2004 10:07 AM
Re: Menu script
Of course you can write a command procedure (script) which acts as a menu.
Use WRITE SYS$OUTPUT to write the contents of the menu to the termianl. Then use:
$ READ SYS$COMMAND CHOICE /PROMPT="String" /END=endlabel
to read the input. String will be the prompt for reading (in yours example " Enter option (1,2,3...) or ?: "). The end label is a DCL label to which program will jump when the user press
You have the user choice in the symbol CHOICE. Now you must write a series of IFs which test the choice. Example:
$START_MENU:
$ WRITE SYS$OUTPUT -
"SHORT MESSAGE TERMINAL - ALBANIA (NEW S)"
$ WRITE SYS$OUTPUT ""
$ WRITE SYS$OUTPUT -
" 1) Submit Message 2) Status Report 3) Options"
etc...
$ READ SYS$COMMAND CHOICE -
/PROMPT="Enter option (1,2,3...) or ?:"/END=START_MENU
$ IF CHOICE.EQS."1" THEN GOTO SUBMIT_MESSAGE
$ IF CHOICE.EQS."2" THEN GOTO STATUS_REPORT
and so on. At end maybe:
$ WRITE SYS$OUTPUT "Bad option, please reenter"
$ GOTO START_MENU
The label is before displaying the whole menu.
$SUBMIT_MESSAGE:
$ READ SYS$COMMAND NUMBER/PROMPT="Enter mobile number: "/END=START_MENU
Now you have the number in the NUMBER symbol. If needed do some testing and call the program to submit the message. At end you add the line:
$ GOTO START_MENU
Write labels, reads and other commands for each option.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 05:37 PM
тАО09-27-2004 05:37 PM
Re: Menu script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 08:34 PM
тАО09-27-2004 08:34 PM
Re: Menu script
To show the last four lines of a text file
$ TYPE/TAIL=4 filename.log
If you need to display lines containing certain strings only then the SEARCH command (possibly combined with PIPE may do what you want. There are utilities to do more complex searches available such as FIND and ports of the unix grep.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 08:50 PM
тАО09-27-2004 08:50 PM
Re: Menu script
-ZMENU, see http://vms.process.com/scripts/fileserv/fileserv.com?ZMENU
- MNEUFINDER, see the Freeware archives (this one only is free for VAX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2004 03:37 AM
тАО09-30-2004 03:37 AM
Re: Menu script
In sys$examples exits a command procedure to execute a manager's menu
MGRMENU.COM
Godd luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2004 09:57 PM
тАО09-30-2004 09:57 PM
Re: Menu script
I wrote a little menu manager with semi-graphical rappresentation.
You write a text file and menu execute all choice.
Written in DCL is integrated in my procedure. If you are interesting into it I could extract the needed files into ZIPped attachment; avaiable on monday or tuesday.
Antonio Vigliotti