Instructions of installing a program in the Local Applications Menu:
Note: You can't use the Local Applications Menu for any script that need arguments. The script has to query the user for any information it needs. Other than that, any executable file can be put into the local application space - C or FORTRAN program, shell script, PERL script, etc. The executable does not have to run the NWIS wrappers since the ADAPS menu will have already done that.
These steps should be done as user "nwis"
1. Put the executable in /usr/opt/nwis/local/util
2. Make sure it is executable (chmod +x)
3. Put a line for the executable in the file /usr/opt/nwis/support/adaps_menus/entry.levels:
LUSR TESTLOCAL Test script local application Help URL
This line will mirror the lines that are already contained in that file. The first four characters are the secruity level. If it starts with "L" it is a local application. LCOP for a COOP level local application LUSR for a USER level one, LDBA for an ADBA level one, and LSYS for a SYST level one. The second field ("TEST LOCAL", above) is the name of the executable file. The third field is what will appear as a description in the "PGM" menu option. The last field ("Help URL", above) is what will appear if the "DOC" option is used for the menu application. This help file can be either a local URL (file://) with a complete path, a web URL (http://), or it can be omitted in which case no help will be available. Do not use tab characters in this file. Line things up with spaces.
4. Put a line for the executable in the file /usr/opt/nwis/support/adaps_menus/menu.lapp:
(LA) SUB-MENU : ADAPS Local Application TESTLOCAL Test script local application
The first field is the name of the executable. The rest is what will appear in the LA menu. It is recommended that you use the same text as was used in step. Do not use tab characters in this file. Line things up with spaces.
[an error occurred while processing this directive]