Solved Can't print from command line

Fairly fresh install of 14.1 on a thinkpad and I migrated my finance software to it yesterday but I can't get any print from the command line.

Cups is installed, printers are configured and they work from GUI apps.

pkg info | lp -d Laserjet
returns
lpr: Laserjet: unknown printer

BUT

lpstat -a
returns
Laserjet accepting requests

Curiously...
pkg info |lpr -d Laserjet
returns
lpr: cannot access Laserjet

I thought lp and lpr were pretty much interchangeable.

I added the rules to/etc/devfs like the manual said and added
devfs_system_ruleset="system" to
/etc/rc.conf
as instructed.

Can anyone suggest what I've missed?
 
Found the solution.

The command is:

lpr-cups -P Laserjet

Why they decided to use -P instead of -d like lpd I don't know.

It's also not explained anywhere that I saw that the command is
lpr-cups
as opposed to just
lpr
 
Back
Top