BatchJob - getDBKeyByGroupAndName
BatchJob - getDBKeyByGroupAndName
Description :
This command returns the handle for a Batch Job. You must identify the job group where the job is stored and the name of the job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
parentGroup | String | Fully qualified path to the job group where the job is stored. |
jobName | String | Name of the Batch Job. |
Example
The following example shows you how to get the DBKey of an existing Batch Job.
Script
# Name of the existing Batch Job.
BATCHJOB_NAME="batchjob1"
# Job group in which the Batch Job is stored.
BATCHJOB_GROUP="/parent/group1"
# Get the Batch Job DBKey using the above information.
BATCHJOB_DBKEY=`blcli BatchJob getDBKeyByGroupAndName $BATCHJOB_GROUP $BATCHJOB_NAME`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*