Previous Topic: Add and Change External ComponentsNext Topic: Add a Dialog


Add and Change External Procedures

To add an external procedure to a PIF package or a component

  1. Select the package or component of a package.
  2. Select the Procedures tab in the work pane.
  3. Right-click in the procedures list and select Add external procedure from the context menu.

    The External procedure dialog appears

  4. Enter properties for the external procedure, as follows:
    Execution Time

    Specifies the time that the script is executed.

    Choose one of the following available values from the drop-down list:

    • pre installation—The script is executed before the package installation.
    • post installation—The script is executed after the package installation.
    • pre remove—The script is executed before the package is removed. If the script exits with a nonzero exit value, the component is not removed from the system, but the uninstallation process continues.
    • post remove—The script is executed after the package has been removed.
    Command

    Indicates the command to execute. You can specify command switches to configure the command execution, for example, date +'%H%M'

    Interpreter

    Describes the name of an interpreter for the shell script, if the default interpreter, the UNIX shell, is not used. Specify the fully qualified path name of the interpreter program.

  5. Click Add.

    The new procedure is displayed in the procedures list.

To change properties of an external procedure

  1. Select the package in the project pane.
  2. Select the procedure to change on the Procedures tab in the work area.
  3. Right-click the selected procedure and choose Properties from the context menu.

    The External procedure dialog appears.

  4. Change the execution time, the command, or the Interpreter specified.
  5. Click Change.

    The modified properties values are applied to the external procedure. Click within the Procedures tab to see the values changed.