|
|
System Startup, Configuration, and Shutdown Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 4 Using the System Generator (SYSGEN)Redirecting SYSGEN Input and Output |
|
By using SYSGEN's file designators, you can redirect SYSGEN's input and output. Redirecting SYSGEN's input and output enables you, for example, to issue commands to SYSGEN using command files that can operate without user intervention or interactive keyboard input. SYSGEN uses three formal file designators for input, output, and listing:
$STDINX and $STDLIST are the file names for the terminal from which SYSGEN is run. The device in class LP is your system printer. Redirect SYSGEN input and output by using the FILE command and equating some other files to SYSGIN, SYSGOUT, and SYSGLIST, or by using the INFO parameter and options in the SYSGEN command line. For example, the commands FILE SYSGIN=NEWIN and SYSGEN,,NEWIN accomplish the same task. When SYSGEN is activated, they utilize NEWIN as the input file. Likewise, the commands FILE SYSGOUT=NEWOUT and SYSGEN,,,NEWOUT equate NEWOUT to the formal file designator, SYSGOUT, so SYSGEN utilizes NEWOUT as the output file. With redirection you can use a command input file to complete common routines that you perform frequently. Example 4-9 lists a three-line job stream (named SYSGENON) which, when run using the STREAM command, logs on to the system, enters SYSGEN, and executes the SYSGEN command file (LISTIT) in example 4-10. Refer to MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364) for information on the STREAM command. Example 4-9 Command File (SYSGENON) Created With EDITOR
Table 4-2 explains the actions performed by each line of the preceding command file. Table 4-2 Actions Performed by Command File Example
Example 4-10 lists the contents of the command file (LISTIT), which, when run, prints SYSGEN information on the system printer. Example 4-10 SYSGEN Command File (LISTIT)
Table 4-3 explains the actions performed by the lines of the command file example. Table 4-3 Actions Performed by Command File LISTIT
When using SYSGEN in a noninteractive mode (such as a batch job or a command file), certain conditions may occur that cause SYSGEN to ask for confirmation. For example, if a KEEP is attempted on top of an already existing configuration group, SYSGEN asks for confirmation. If no configuration exists, no questions are asked. When you set up the input to SYSGEN you may not know if the question will be asked. To ensure the operation's success, set PERMYES ON at the beginning of any set of noninteractive commands as shown in step 1 above. |
|