168

For each job, the command lists:

ÂDocument name

ÂDocument size

ÂJob ID

ÂSubmitting user

ÂSubmitting host

ÂJob name

ÂJob state

ÂJob priority

Holding a Job

You can use the serveradmin setJobState command to hold or release a job.

To hold a job:

$ sudo serveradmin command print:command = setJobState print:status = HOLD print:jobsArray:_array_index:0:printer = queue print:jobsArray:_array_index:0:idsArray:_array_index:0 = jobid Control-D

Parameter

Description

queue

The name of the queue. To find the name of the queue, use the

 

getQueues command and look for the value of the printer

 

setting. See “Listing Queues” on page 167.

 

 

jobid

The ID of the job. To find the ID of the job, use the getJobs

 

command and look for the value of the jobId setting. See “Listing

 

Jobs and Job Information” on page 167.

 

 

To release the job for printing, change its state to PENDING.

To release the job:

$ sudo serveradmin command

print:command = setJobState

print:status = PENDING

print:jobsArray:_array_index:0:printer = queue

print:jobsArray:_array_index:0:idsArray:_array_index:0 = jobid

Control-D

Chapter 10 Working with the Print Service

Page 168
Image 168
Apple Mac OS X Server manual Holding a Job, To hold a job, To release the job