[Samba] smbclient queue command issue

Eric Rowell erowell at gmail.com
Wed Jun 23 05:50:57 MDT 2010


Thank you for the patch.  This will help make it easier for others to
use this command set.  Is there anything I can do to help get it into
the documentation for the man page for future people looking to use
this?

Eric B. Rowell

On Tue, Jun 22, 2010 at 6:09 PM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Jun 22, 2010 at 02:49:13PM -0700, Jeremy Allison wrote:
>> 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.
>
> Here's a patch (that applies to 3.5.x) that
> makes this a little nicer to use.
>
> Jeremy.
>



-- 
Eric B. Rowell


More information about the samba mailing list