Using CUPS as queue for bash scripts
Helge Blischke
h.blischke at acm.org
Mon Sep 21 05:33:40 PDT 2009
Oleg Volkov wrote:
> Hi, All
>
> A long time ago I've used an AIX printing system for sending jobs
> (batches) to job queue. In that example, there was a license limitation to
> not use particular software more than 4 sessions simultaneously. As a
> solution, 4 "job" printers was defined for the same print queue, and all
> jobs were sent to it.
>
> Now, I have a similar task, but limited by hardware, Only one job can use
> this peace of hardware, but jobs will comes asynchronous from different
> sources without any locking mechanism. A concurrent job will fail.
>
> I am wonder, if there is possible to define such "job" printer using CUPS
> ?
>
> Thank you,
>
> --
> Oleg
Yes, it is. You may easily write a (bash-, Perl-, Python- or whatever)
script which runs the jobs and waits for completion.
Helge
More information about the cups
mailing list