Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

visit(1)



  .rloginrc(4)                        CLIX                        .rloginrc(4)



  NAME

    .rloginrc - Chat scripts for visit command

  DESCRIPTION

    The .rloginrc file is an ASCII file in the user's home directory that
    contains a chat script to be read when the visit command is run.

    The following commands are used in the .rloginrc startup file.  The first
    line of the file optionally can contain a c (short for connect) followed
    by a list of flags.  The remaining lines in the file contain chat scripts
    for different remote hosts.  The first line of each chat script should
    begin with an exclamation point (!).

    connect [flags...]
           Specifies the default visit flags.  (Refer to visit(1) for
           information on the available flags.)  These flags can be overridden
           on the command line.  If the connect line is specified, it must be
           the first line in the file.

    ! [host]
           Indicates the beginning of a new chat script.  If host is
           specified, this chat script is used every time a session is
           initiated with host.  The host parameter is specified as a nodename
           or network address.  Use the -n flag on the command line to
           override this chat script.  If a host is not specified after the
           exclamation point, this chat script is the default chat script for
           all hosts.

    output string
           Outputs string to the visit session once it is connected.  The
           string parameter is a sequence of characters, where a circumflex
           (^) in the file is read as <Ctrl> when the chat script is run, and
           a backslash followed by a circumflex (\^) in the file is read as a
           circumflex when the chat script is run.

    input timeout string
           Waits for host to display string.  The string parameter is a
           sequence of characters, where a circumflex (^) in the file is read
           as <Ctrl> when the chat script is run, and a backslash followed by
           a circumflex (\^) in the file is read as a circumflex when the chat
           script is run.  The timeout is specified in seconds.  If string is
           not received within timeout seconds, visit ignores the rest of the
           chat script.

  EXAMPLES

    An example .rloginrc file follows:

    connect -y -e "" -f logfile.dat



  2/94 - Intergraph Corporation                                              1






  .rloginrc(4)                        CLIX                        .rloginrc(4)



    ! is200
         input 5 login:
         output jim^M
         input 2 word:
         output abc123^M
         input 60 $
         output who^M

    The first line specifies the default visit flags to be used anytime a
    session is started.  The rest of the script is an example of a chat script
    when a connection is made to node is200.

    When a connection is made to is200, the visit command sets the default
    flags -y -e "" -f logfile.dat, then waits a maximum of five seconds for
    the login: prompt.  When this prompt is received, the string jim <Return>
    is sent to the remote system.  Next, the visit command waits a maximum of
    two seconds for word (the last part of the password prompt), then sends
    the password string abc123 <Return> (see CAUTIONS concerning inclusion of
    passwords in the file).  After the password is sent, visit waits a maximum
    of 60 seconds for the $ prompt, and finally sends <Return> to the remote
    system and returns control to the user.

  CAUTIONS

    Including your password in a .rloginrc file is a serious security risk.
    Ensure that the file permissions prevent anyone other than the user from
    reading this file or, for more security, do not include passwords in this
    file.

  RELATED INFORMATION

    Commands:  visit(1)






















  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026