Reputation: 13
I have bought a chinese barcode printer GP-3150TIN. It haven't linux drivers. On Windows I'm printing directly to LPT using printers own markup language. But printer connected to PC via USB and to print directly to LPT I had to use such nasty hack:
+ Create a share for the USB printer
+ net use LPT5 \\COMPUTERNAME\SHARENAME /PERSISTENT:YES
After that I could print the way like this
copy con LPT5
...
Ctrl+Z, Enter
I suspect that this way of printing is via some generic interface, and it realized on linux too. Maybe I'm wrong.
Please help me to print in linux. Perfectly from PHP, could be from bash. In the worst way at least print on Windows avoiding that nasty hack and printing like
copy con USB0001
...
Ctrl+Z, Enter
Sorry for my English.
Upvotes: 1
Views: 186
Reputation: 10149
You could try the steps outlined in this blog post. When you have identified the lpX device, you could use it like cat filename > /dev/usb/lpX
. The links also shows a php example.
Upvotes: 1