

Software Packager for Linux and UNIX › Add and Change External Procedures
Add and Change External Procedures
To add an external procedure to a PIF package or a component
- Select the package or component of a package.
- Select the Procedures tab in the work pane.
- Right-click in the procedures list and select Add external procedure from the context menu.
The External procedure dialog appears
- 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.
- Click Add.
The new procedure is displayed in the procedures list.
To change properties of an external procedure
- Select the package in the project pane.
- Select the procedure to change on the Procedures tab in the work area.
- Right-click the selected procedure and choose Properties from the context menu.
The External procedure dialog appears.
- Change the execution time, the command, or the Interpreter specified.
- Click Change.
The modified properties values are applied to the external procedure. Click within the Procedures tab to see the values changed.
Copyright © 2013 CA.
All rights reserved.
 
|
|