Description of the trscopy utility  Creating additional TRS services

Chapter 2: Creating a TRS

Using the trscopy command

Following is the trscopy command for Microsoft Windows:

trscopy source_DirectConnect source_Service_Library destination_DirectConnect destination_Service_Library 

Following is the trscopy command for UNIX platforms:

trscopy.sh source_DirectConnect source_Service_Library destination_DirectConnect destination_Service_Library 
[-a] [-l] [-v]

Table 2-2 describes the parameters and options in the trscopy command.

Table 2-2: Description of trscopy parameters and options

Parameter

Description

source_DirectConnect

(Required) Name of the server that contains the source TRS files. It is located in the directory under the following name:

  • %SYBASE%\%SYBASE_ECON% for Windows

  • $SYBASE/$SYBASE_ECON for UNIX

%SYBASE% or $SYBASE is the Sybase environment variable. It points to the Sybase product directory structure that contains DirectConnect for both the source and target TRS service libraries.

source_TRS_Library

(Required) The name of the source TRS library associated with this server. It must exist under the source DirectConnect server name.

destination_DirectConnect

(Required) Name of the target DirectConnect server, located in the directory under %SYBASE%\%SYBASE_ECON%.

destination_TRS_Library

(Required) Name of the target TRS library. Follow these guidelines:

  • The executable associated with the server library name must not exist under the target DirectConnect server.

  • The file name must not exist anywhere under the following locales directory structure, based on platform: - %SYBASE%\locales, for Windows - $SYBASE/locales, for UNIX

-a

(Optional and for UNIX only) Option that generates new service names for the new service library and adds these new services to the interfaces file.

-l

(Optional and for UNIX only) A “softlink” option. When possible, use softlinks instead of copying a file.

-v

(Optional and for UNIX only) Verbose option, which displays a description of each operation while it runs.





Copyright © 2005. Sybase Inc. All rights reserved. Creating additional TRS services

View this book as PDF