Configuring e-Biz Impact to use CNC requests  Wrapper scripts

Chapter 1: Command Line Utilities

Adding the wrapper scripts directory to the PATH variable

Before you execute a wrapper script, you must set the PATH environment variable for the wrapper script directory. If you execute a command in a terminal window (UNIX systems) or at a DOS command line (Windows) and do not have the PATH variable set correctly, the system cannot find the command unless you include the full path to the executable when you type the command.

The wrapper script executables are located in x:\Sybase\ImpactServer-5_4\bin on Windows and in ~/Sybase/ImpactServer-5_4/bin on UNIX systems, (where “x” and “~” represent the location in which the e-Biz Impact server is installed).

StepsSetting the PATH variable on Windows

  1. Select Start | Settings, then double-click Control Panel.

  2. When the Control Panel window opens, double-click the System icon.

  3. When the System Properties window opens, select the Advanced tab, then click Environment Variables.

  4. In the System Variables section of the window, select the PATH variable and click Edit.

  5. In the Edit System Variable dialog box, append the ims wrapper script location to the PATH statement. For example, if the e-Biz Impact server is installed in the root of drive D: on Windows, enter this at the end of the PATH statement in the Variable Value field:

    ;D:\Sybase\ImpactServer-5_4\bin
    

    NoteSeparate the existing path statement and the new entry with a semicolon (;) with no space after the semi-colon.

  6. Click OK to save your entry and close the Edit System Variable dialog box.

  7. Click OK to close the Environment Variable window, then click OK to close the System Properties window.

  8. Close the Control Panel window.

  9. Restart your machine to implement the new PATH variable.

StepsSetting the PATH variable on UNIX systems

This procedure is for the C-shell user environment. If your UNIX system uses a different shell (for example, the Bourne shell or Korn shell), see your UNIX system documentation for instructions on setting the PATH variable.

NoteTo see which shell is the default on your system, type echo $SHELL in a terminal window.

You can set the PATH variable each time you open a terminal session and start the cluster, or you can set the PATH variable permanently for all terminal sessions by adding the ims wrapper script path to the $HOME/.cshrc file.

NoteGenerally, shell variables apply only to the current instance of the shell and are used to set short-term working conditions; environment variables have a farther reaching significance, and those set at login are valid for the duration of the session. By convention, environment variables are uppercase and shell variables are lower case names.

The PATH environment variable and path shell variable specify directories to search for commands and programs. Both variables always represent the same directory list, and altering either automatically causes the other to be changed.

  1. To permanently add the wrapper script directory to your path:

    1. Open the $HOME/.cshrc file in a text editor.

    2. Add the following line to the .cshrc after the list of other commands:

      set path = ($path /<install_directory>/Sybase/ImpactServer-5_4/bin)
      

      where <install_directory> is the location where the e-Biz Impact version 5.4.5 server is installed.

    3. Save the .cshrc file and close the text editor.

    4. Log out of the system and log back in to establish the new path.

  2. To add the wrapper script path to the end of your existing path for only the current session, open a terminal window and enter the following on one line:

    set path = ($path <install_directory>/Sybase/ImpactServer-5_4/bin)
    

    where <install_directory> is the location where the e-Biz Impact version server is installed.

NoteIf you did not use step 1 to permanently add the wrapper script location to your path, each time you open a terminal window to execute the cluster, you must first enter the command shown in step 2 to set the PATH variable for the wrapper script for that session.





Copyright © 2005. Sybase Inc. All rights reserved. Wrapper scripts

View this book as PDF