User's Reference > Administration > Reality on the Host > Reality Configuration on the Host > Starting Reality Automatically

Comment on this topic

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.

RealityV15.1Online Documentation (MoTW) Revision 7

Starting Reality Automatically (Host) (startingrealityautomatically.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

UNIX onlyStarting Reality Automatically

The file .profile which is automatically run at UNIX login can contain the line:

exec reality

If this is done, the user is automatically taken into Reality when they log on to the UNIX system (see the description of the reality command) and when they log off from Reality they are disconnected from the UNIX system. Using .profile in this way therefore by-passes the UNIX command line entirely.

You can use the user's .realityrc file to set environment variables that specify the database, user-id and account used, together with any passwords.

Example

Assuming that a UNIX user-id of fred exists with the home directory /usr/fred,

  1. Create a file /usr/fred/.realityrc and enter the following:

    REALDBASE=/user0/Reality/DB01
    REALUSER=BLOGGS,SECRET
    REALACC=PROGS
  2. Ensure that UNIX permissions on the file are adequate to protect it from other users.
  3. If it does not already exist, create a file /usr/fred/.profile and enter:

    exec reality

When fred logs onto the UNIX system, the Reality database specified in /usr/fred/.realityrc is automatically entered and fred is logged on with Reality user-id BLOGGS and Reality account PROGS.

Note: See Administration from Reality for further details of customisation of Reality logons using logon programs.

RealityV15.1 (MoTW) Revision 7Comment on this topic