tip command variables
The tip command variables define settings such as the end-of-line character, the break signal, and the mode of file transfers.
Variable settings can be initialized at run time using a .tiprc file.
Variable settings can also be changed during execution using the ~s
escape
signal. Some variables, such as the end-of-line character, can be
set for an individual system in the system entry of the remote file.
The tip command reads three files, the phones file, remote file, and .tiprc file, to determine initial settings for its variables. The .tiprc file must always be in the user home directory. The names and locations of the remote and phones files can vary. The names of the remote file and the phones file can be determined by environment variables:
Item | Description |
---|---|
PHONES | Specifies the name of the user phone file. The file can have any valid file name and must be set up in the format of the file /usr/lib/phones-file. The default file is etc/phones. If a file is specified with the PHONES variable, it is used in place of (not in addition to) the /etc/phones file. |
REMOTE | Specifies the name of the user remote system definition file. The file can have any valid file name and must be set up in the format of the /usr/lib/remote-file file. The default file is /etc/remote. If a file is specified with the REMOTE variable, it is used in place of (not in addition to) the /etc/remote file. |
To use an environment variable, set it before starting the tip command. As an alternative, the names of the phones and remote files can be determined using the tip command phones variable and remote variable, respectively, in the .tiprc file.
The tip command uses variable settings in the following order:
- The command checks the settings of the PHONES and REMOTE environment variables for the files to use as the phones and remote files.
- The command reads the .tiprc file and sets all variables accordingly. If the phones or remote variable is set in the .tiprc file, this setting overrides the environment variable setting.
- When a connection to a remote system is initiated, the command reads the remote file entry for that system. The settings in the remote file entry override settings made in the .tiprc file.
- If the - BaudRate flag is used with the tip command, the specified rate overrides all previous baud rate settings.
- A setting made with the
~s
escape signal overrides all previous settings of a variable.Note: Any tip user can create a .tiprc file and use this file to specify initial settings for tip variables. The .tiprc file must be placed in the user $HOME directory.