Before you can invoke a Replication Agent utility, you must:
Log in to the operating system on the Replication Agent host machine with a user login that has execute permission in the Replication Agent installation directory and all subdirectories (for example, the “sybase” user)
Use the SYBASE environment script to set the Sybase environment variables
The SYBASE environment script is supplied as a batch file for Microsoft Windows platforms (SYBASE.bat) and as a shell script for UNIX platforms (SYBASE.sh or SYBASE.csh).
Setting the SYBASE environment
Log in to the operating system on the Replication Agent host machine with a user login that has the appropriate permissions.
Open an operating system command window.
At the operating system prompt, navigate to the Replication Agent installation directory:
On Microsoft Windows:
cd c:\sybase
Here, c:\sybase is the path to the Replication Agent installation directory.
On UNIX:
cd /opt/sybase
Here, /opt/sybase is the path to the Replication Agent installation directory.
In the Replication Agent installation directory, invoke the SYBASE environment script:
On Microsoft Windows:
SYBASE
On UNIX, for Bourne and Korn shells:
. SYBASE.sh
On UNIX, for C-shell:
source SYBASE.csh
On UNIX platforms, you can insert the source command
line in the .login file for the Replication
Agent administrator (or “sybase” user), so that
the SYBASE environment is set automatically when you log in to the
Replication Agent host machine.