Python Forum
Printing to a printer connected to pi 4 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Printing to a printer connected to pi 4 (/thread-30092.html)



Printing to a printer connected to pi 4 - alan - Oct-04-2020

Hello all
I am a total newbie but with a background in BASIC, QBasic, MMBasic and Vb6. I am about to take delivery of a Raspberry Pi 4. I am intending to set up a headless print server using Python to receive serial files via the USB connection (from a CMM2) and print to a network lineprinter. I am aware of how to set up access to the printer with CUPS, but not much else. Suggestions would be welcome.

Confused


RE: Printing to a printer connected to pi 4 - Gribouillis - Oct-04-2020

As a first idea, your python program could invoke linux' lpr command to send a file to the printer.


RE: Printing to a printer connected to pi 4 - alan - Oct-04-2020

Thanks I'll look that up. BTW, on this forum can I set it to notify me when a post is received?