Scripting languages

This topic provides information about the available scripting languages that you can use to write hooks.

Hooks are scripts or triggers that run under a set of conditions to perform a specific task.

You can write hooks in BASIC (VBScript) for Windows and in Perl for Windows and the UNIX system. You must use Perl when writing scripts for the UNIX system.

If you are using the Rational® ClearQuest® Web client, you can use either Perl or VBScript. However, because the scripts run on the server (not in the Web browser), you can only run Perl hooks if the Web server is installed on a UNIX system or LINUX machine. If the Web server is installed on a Windows machine, you can run either Perl or VBScript hooks.

By default, scripts run in BASIC on Windows and in Perl on the UNIX system. The Windows Scripting Language setting must be the same language as the language that the scripts are written in. For example, if BASIC is selected as the Windows Scripting Language and a hook is written in Perl, that hook is not triggered on Windows.

The option to set the Windows Scripting Language is available on the Properties page for a checked-out schema.

For more information, see Using hooks to customize your workflow.