Using rs_init command line options

After you have edited your resource file, start rs_init from the operating system prompt:

rs_init resource_file_name [-option] [parameter]

where:

You can specify more than one command line option. For a resource file session, you must specify the -r option and the resource file name. Table B-2 lists the available options for a resource file. You can also use some of these options in an interactive rs_init session.

Table B-2: rs_init command line options

Flags

Parameters

Explanation

-a

none

Validates the resource file and exits without performing the configuration task. Without the -a flag, rs_init validates the resource file and continues the product configuration. You must use the -r flag with the -a flag.

-c

See “Replication Server information” for a list of character sets.

Specifies the character set used for all messages and prompts. The -c flag forces rs_init to use a particular character set. Otherwise, rs_init uses your system’s default character set.

-e

none

Records information about the user’s environment and exits. Information is written to the log file. Without the -e flag, rs_init records user environment information and continues the product configuration.

-h

none

Prints out usage message (help) and exits.

-l

French, German, Japanese, Spanish, Chinese, Korean

Specifies the language used for all messages and prompts. The -l flag forces rs_init to use a particular language. Without this option, rs_init uses U.S. English.

-log

Path and file name of log file

Lets the user specify location of the session log file. Without the -log flag, rs_init uses the default log location ($SYBASE/init/log).

-r

Path and file name of resource file

Specifies that rs_init is to take input from the listed resource file. Use this flag in noninteractive sessions to configure new server products, upgrade existing server products, or modify existing server products.

-s

Path of Sybase release directory

Specifies the Sybase release directory. If you do not use the -s flag, rs_init assumes that the Sybase release directory is the current directory.

-T IGNORE_WARNINGS

none

Entering certain values for some attributes causes rs_init to exit with a warning. (rs_init exits, for instance, if you specify an operating system file for the location of the master device.) Invoking an rs_init resource file session with the -T IGNORE_WARNINGS flag allows the rs_init session to continue.

-v

none

Prints the rs_init version string and exits.