job jobRef exec

Available for: Content Management Server, Template Engine

Task: Places a job in the job execution queue.

Additional information: If the job has already been queued for execution it will not be queued a second time.

Syntax:

job (withName jobName) | (withId jobId) exec

Function parameters: none.

Return value if successful: The new value for queuePos. If the job has already been queued the current queuePos value will be returned.

Necessary permissions (CM only): The user must be a super user or the user with the execLogin login or have the permission specified as the value of the execPerm parameter.

Example:

CM>job withId 2023 exec
5