What is the correct way print file to printer from C -program?
Command system("lpr /tmp/filename.prn");
generates error lpr: No file in print request
.
Same command in command line works perfectly.
OS is Debian 9.2, kernel 4.9.0 and cups is version 2.2.1-8