The parameters are known by their name in the script. In the job call, however, they only have an order in which they are listed. These two worlds must be mapped on each other. This is done on the Service tab of a service in the ITP/Server Administrator.
Click on the example service we just created in Services node of the tree view. The Service tab of the example service will open on the right.
This tab consists of two columns: Script parameters and Value (job parameter). In the first column we enter the parameters as listed in the script. In our case:
source_file
result_file
Each on their own line and spelled exactly as in the script. A mistake and the script will not compile.
Next we enter the order in which we will expect them in the job call. This is done by entering a number preceded by $ in the Value(job parameter) column:
source_file |
$1 |
result_file |
$2 |
Press the Save button.
The next step is compiling the scripts.