Logging off and Disconnecting mvTerm

When disconnecting an mvTerm client session, the session disconnects from the mvBase Server, and the session title bar displays Not Connected. The mvBase Terminal Emulator (mvTerm) window does not close automatically upon disconnect.

If the port is not logged off before disconnecting from the Server, the port remains logged on. If you reconnect, you will pick up where you left off. If you have AUTO-LOGOFF set on the line and you are in the middle of an update when you disconnect, there is the potential for data corruption.

Disconnecting (and Exiting) the mvTerm Client

Perform these steps to disconnect the active mvTerm session from the mvBase Server:

  1. Switch to the active mvTerm session (if necessary).

  2. Select Session.

  3. Select Disconnect or press ALT+D.

Perform these steps to exit the mvTerm client:

  1. Select Session.

  2. Select Exit. This command automatically disconnects and exits all mvTerm sessions.

Using AUTO-LOGOFF with mvTerm

The AUTO-TCL command automatically logs off a specified process after either a designated period of inactivity or the loss of the client connection. An unattended client connection may pose a security risk; the AUTO-LOGOFF command can reduce this risk on a system-wide or an account-by-account basis.

Format

AUTO-LOGOFF target [seconds][(options)]

Parameter(s)

target

Can be one of these options:

account

Specifies any process logged onto this account.

n

Specifies a process number.

n-m

Specifies a range of processes.

seconds

Number of seconds of CPU inactivity before the process is automatically logged off.

options

Must be enclosed in parentheses and can be:

C

Turns off automatic logoff for the specified process or processes.

D

Monitors the client connection for the specified process and performs an automatic logoff if the connection is closed.

If neither seconds nor options are specified, the current AUTO-LOGOFF settings for the specified processes are displayed.

AUTO-LOGOFF will not force a process that is currently logged on to log off. The AUTO-LOGOFF command only takes effect after the process has been logged off and logged back on again.

Include the AUTO-LOGOFF command in the USER-COLD-START Proc to set system-wide auto-logoff parameters.

NOTE

If the D option is used for process n and an mvTerm client connected to process n closes its mvTerm client window, process n will be logged off.

Automatically Logging off a Process

This example specifies that process number 9 be automatically logged off after 600 seconds (10 minutes) of CPU inactivity:

>AUTO-LOGOFF 9 600

The next example specifies that any processes logged onto the ORDERS account will be automatically logged off after 1200 seconds (20 minutes) of CPU inactivity:

>AUTO-LOGOFF ORDERS 1200

The next example logs off line 1 after 10 seconds of inactivity:

>AUTO-LOGOFF 1 10

The next example logs off lines 2 through 4 after 5 seconds of inactivity:

>AUTO-LOGOFF 2-4 5

The next example logs of line 1 if it becomes disconnected:

>AUTO-LOGOFF 1 (D

The next example logs off lines 2-4 if they become disconnected:

>AUTO-LOGOFF 2-4 (D

The next example clears the AUTO-LOGOFF settings for line 1:

>AUTO-LOGOFF 1(C

The next example clears the AUTO-LOGOFF settings for lines 2 through 4:

>AUTO-LOGOFF 2-4 (C

The next example displays the AUTO-LOGOFF settings for lines 1:

>AUTO-LOGOFF 1

The next example displays the AUTO-LOGOFF settings for lines 2 through 4:

>AUTO-LOGOFF 2-4

See Also

Configuring and Using the mvTerm Client

Setting Up mvTerm on Windows

Overview of the mvTerm Window

Configuring (and Saving) mvTerm Properties

Using mvTerm Command Line Syntax

Creating Customized mvTerm Menus

Controlling mvTerm Properties from mvBASIC

Starting and Connecting mvTerm

Copying and Pasting Within an mvTerm Client Session

Using Back Pages

Using Enhanced Programmable Mouse Click Features