Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
LOGTO (TCL) (m604806+logto.htm)
Logs directly to another Reality account without first logging off.
Caution
Do not execute LOGTO in a Proc or a DataBasic PERFORM statement.
TCL-I command.
LOGTO account{,password} {(options}
account is the name of the account to log to.
password is the password of the account.
If you omit password, but the account you have specified requires a password, you will be prompted to enter it. In this case, the password is not displayed on the screen.
C Bypasses the logon program of the account to which you are logging unless the account has been set up to prevent this.
K When logging to a remote database, keep the original connection and return to it on exit.
LOGTO only logs to another Reality account (which can be on another database), not to a UNIX or Windows command shell.
LOGTO performs the following functions.
Verifies that the specified account name is defined in the SYSTEM Dictionary.
Note: If you enter an invalid account-name the PASSWORD prompt is still displayed.
Verifies that the password entered is valid.
If you enter an invalid password, or the account-name is not defined in SYSTEM, LOGTO displays the message:
Invalid logon attempt
and returns to TCL.
Reports computer usage accumulated since the last logon. It displays a logoff banner (see example), showing:
Initiates the Account Logon Program if one exists in the new account (unless you have used the C option to bypass it). Note, however, that for security reasons you may be prevented from bypassing the logon program.
:LOGTO SYSMAN
****************************************************
*** CONNECT TIME AT 14:37:33 = 582 MINUTES ***
*** CPU MS. = 3600 ***
****************************************************
The message shown in the example above resides in item '340' in the ERRMSG file. Like other logon messages, you can edit it, as described in the section Editing Logon Prompt and Message. This message is also used by other TCL commands, including OFF, CHARGES and CHARGE-TO.