Job - moveByJobKeyAndGroup
Move a job to another group, given its full path. First step is to find a job object given the job key, then we move it to the specified group. This command returns the handle to the moved Job.
Return type : DBKey
Command Input :
Handle to the job being modified.
Full path to where it is to be moved
The following example demonstrates how to obtain a job key and then use the command to move the job to a different group.
JOB_FOLDER="/NSH_Jobs_1" JOB_NAME="Run on all Servers" JOB_KEY=`blcli NSHScriptJob getDBKeyByGroupAndName "$JOB_FOLDER" "$JOB_NAME"` MOVED_JOB_KEY=`blcli Job moveByJobKeyAndGroup "$JOB_KEY" "/NSH_Jobs_2"`