Compiling a script file (Linux or UNIX)

After creating a script file, it must be compiled to produce a batch file.

About this task

This step verifies command syntax, but does not verify specific names (such as datastore names, subscription names, and so on) identified in a command invocation. If the script file contains connectServer - Connect to Access Server, compiling also encrypts the Management Console user password in the batch file. This prevents the password from being seen by other users. When the batch file is executed, the encrypted password is internally decrypted before connectServer - Connect to Access Server is invoked.

If the script file you are compiling contains execute - Run Batch File commands, you must individually compile each script file (in no specific order) identified in the execute - Run Batch File commands. Compiling the script file containing the execute - Run Batch File commands does not automatically compile nested script files.

After compiling a script file, do not modify the generated batch file that you will run. If you edit the batch file after compilation, you will not be able to run this file.

Note: Script files must be compiled outside an interactive command environment.

Perform the following steps based on the operating system running on the workstation where Access Server has been installed.

Procedure

  1. Open a command prompt window
  2. Change the current directory to the location where Access Server was installed.
  3. Issue the following command:
    bin/online -c <scriptfile> <outputfile>

    where <scriptfile> is the full path name of the script file that you want to compile, and <outputfile> is the full path name of the output file that is produced as a result of compiling the script file.

Example

Example:

bin/online -c script1 script1c