Changing Environment scroll order
This procedure describes how to change the order in which Environments
appear at the command line when you use the Change Environment (. cv
) command.
To change the scroll order of Environments
-
Using lx or an editor
of your choice, open the file
/etc/lawson.env
. - Cut the text defining the Environment you want to move and paste it into the correct position within the file. For example, if you want your new Environment to be the next available Environment to scroll after the default Environment, paste the text immediately after the default Environment.
-
Save and close the file.
The changes you made take effect the next time a user runs the Change Environment command.
Example
lawenv is the default Environment that all users should have access to; lawenvdev is a previously existing Environment that only a few users need access to; lawenvtest is a new installed Environment that many users need access to. Because it is the newest Environment, lawenvtest is the last to appear in the file and users need to perform the Change Environment command (
. cv
) twice to access it. By moving lawenvtest above lawenvdev in the file, you make it accessible with only one Change Environment command. lawenvdev now requires two Change Environment commands....
# Environment lawenv
lawenv
{
Set GENDIR /lawenv/univ Set LAWDIR /lawenv/apps Set LADBDIR /lawenv/DB Set LAWIPC 0x22
}
# Environment lawenv Development
lawenvdev
{
Set GENDIR /qa/lawenvdev/univ Set LAWDIR /qa/lawenvdev/apps Set LADBDIR /qa/lawenvdev/DB Set LAWIPC 0x80
}
# Environment lawenv Test
lawenvtest
{
Set GENDIR /qa/lawenvt/univ Set LAWDIR /qa/lawenvt/apps Set LADBDIR /qa/lawenvt/DB Set LAWIPC 0x22
}
...