On Monday 01 February 2010 09:46:18 Wayne Stallwood wrote:
> .....
> If the printer is configured as a raw device in cups and raw support is
> enabled then you should be doing
> lp -dprintername temprint.txt
>
> Then cups will manage the task of spooling the job until the printer is
> online and it should all be managed properly.
>
> I see this is for a receipt printer because you are sending cutter and
> drawer kick commands, you aren't hacking receipt printing support onto
> phppointofsale are you ? If so I probably still have the stuff from when
> I did that about 4 years ago, no doubt it would need updating and it is
> so nasty it never got accepted as a patch to the main project :)
>
Yes, now I see. Finally! I'll have a go with this. It makes sense.
It is a receipt printer, but the POS is my own hack. It works, but I'm
painfully aware that it lacks a lot (all?) of the stuff professionally
designed POS systems have. The reason why I am using a raw printer is
money - the one we bought cost £40, new but discontinued model, and one
from the same supplier that would be new and run in CUPS in native mode
would have been a couple hundred. The difference was important.
Still and all, with a used barcode reader and this package and using
kbarcode and a bunch of other OSS things, the total cost of moving to bar
codes was really cheap. It ran last season on a £35 reject machine, and
was perfectly satisfactory.
Peter