Can't print from the command line

I have my printer set up on a Windows-based print server, SAMBA and CUPS are working on my Linux box, and I can print just fine from GUI apps - Firefox and OpenOffice work for sure. However, I can’t get it to print from the command line. I’m getting:

randybob@actionfrank:~> man -t ls | lpr -P HPLaserJet_2015
lpr: The printer or class was not found.

Using OpenSUSE 11.1. Help?

Do you actually have a queue by that name? Do:

lpstat -a

Yes.


randybob@actionfrank:~> lpstat -a
HPLaserJet_P2015 accepting requests since Wed 11 Mar 2009 01:04:03 AM EDT

You typed in:

lpr -P HPLaserJet_2015

but the name of the queue is:

HPLaserJet_P2015 accepting requests since Wed 11 Mar 2009 01:04:03 AM EDT

One P makes all the difference. Maybe you want to rename that queue to something shorter, or make it the default printer so that you don’t have to keep entering -P blahblah

Doh! Thanks.:shame: