[cups] Setting up a file printer under CentOS7

マスターズ・イアン ian at ncsa.jp
Thu Sep 13 18:37:22 PDT 2018


> Oh, I misunderstood. I thought your "ls" command had shown the printfile created by your fileprinter.
> Yes, of course, you need to do the instructions as, um, instructed :-) So for example I use /tmp/foo as the filename in the lpadmin command.

For convenience, I changed mine to /tmp/foo

> Another poster said you don't have to create the file on the system, but if nothing is created you need to check your /var/log/messages and cups debug to see if your new printer tried and could not create the file.

No file created after printing:
[root at centos7-001 ~]# ls -l /tmp/foo
ls: /tmp/foo にアクセスできません: そのようなファイルやディレクトリはありません

No error message in /var/log/messages:
[root at centos7-001 ~]# grep foo /var/log/messages
(nothing)

Nothing in /var/log/cups/* except for:
[root at centos7-001 ~]# grep foo /var/log/cups/*
/var/log/cups/error_log:I [14/Sep/2018:10:27:17 +0900] Setting PrintToFile device-uri to "file:/tmp/foo" (was "file:/tmp/p2f".)

I'm starting to feel like I'm wading through natto ...

ian





More information about the cups mailing list