[Samba] smbclient queue command issue

Jeremy Allison jra at samba.org
Tue Jun 22 15:49:13 MDT 2010


On Tue, Jun 22, 2010 at 05:37:08PM -0400, Eric Rowell wrote:
> Tried the following after poking around:
> 
> rpcclient -c "setjob printer  1340 job_control_cancel" -U username PrinterServer
> 
> rpcclient -c "setjob printer  1340 job_control_delete" -U username PrinterServer
> 
> It doesn't error but it didn't cancel or delete the job.

The "setjob" function uses a numeric job control code
(which sucks, I know :-).

So you need to do the following :

        SPOOLSS_JOB_CONTROL_PAUSE=(int)(1),
        SPOOLSS_JOB_CONTROL_RESUME=(int)(2),
        SPOOLSS_JOB_CONTROL_CANCEL=(int)(3),
        SPOOLSS_JOB_CONTROL_RESTART=(int)(4),
        SPOOLSS_JOB_CONTROL_DELETE=(int)(5),
        SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER=(int)(6),
        SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED=(int)(7),
        SPOOLSS_JOB_CONTROL_RETAIN=(int)(8),
        SPOOLSS_JOB_CONTROL_RELEASE=(int)(9)

rpcclient -c "setjob printer  1340 5" -U username PrinterServer

for job control delete.


More information about the samba mailing list