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:namesArray:_array_index:0:printer = queue

print:namesArray:_array_index:0:idsArray:_array_index:0 = jobid

Control-D

Viewing Print Service Log Files

You can use tail or any other file listing tool to view the contents of the Print service logs.

To view the latest entries in a log:

$ tail log-file

You can use the serveradmin getLogPaths command to see where the current logs are located.

To display the log paths:

$ sudo serveradmin command print:command = getLogPaths

Output

print:logPathsArray:_array_index:0:path = <service-log>

print:logPathsArray:_array_index:0:name = SYSTEMLOG

print:logPathsArray:_array_index:0:path = <job-log-0>

print:logPathsArray:_array_index:0:path = <queue-name-0>

print:logPathsArray:_array_index:0:path = <job-log-1>

print:logPathsArray:_array_index:0:path = <queue-name-1>

[...]

print:logPathsArray:_array_index:0:path = <job-log-n>

print:logPathsArray:_array_index:0:path = <queue-name-n>

Value

Description

<service-log>

The location of the primary Print service log. Default =

 

/Library/Logs/PrintService/

 

PrintService.server.log

 

 

<job-log-n>

The location of the job log for the corresponding queue. Default =

 

/Library/Logs/PrintService/

 

PrintService.<queue-name-n>.job.log

 

 

<queue-name-n>

The name of the queue.

 

 

Chapter 9 Working With Print Service

95

Page 95
Image 95
Apple oxs manual Viewing Print Service Log Files, To release the job