OS X (10.3.9) and lp

A

Ashcrow

Guest
Hey Guys,

I can't seem to get lp from the command line to work properly. I have USB printer hooked up to my Powerbook and it shows up correctly in my printers list ... but when I run the command lp -d LabelWriter_330_Turbo -oraw /tmp/1115728119.29 it returns request id is LabelWriter_330_Turbo-606 (1 file(s)) but nothing happens. If I watch the Printer List closely I see if say Printing for a split second before disappearing. I also noticed the following on the console:

Code:
 [10/May/2005:11:56:21 -0400] Printer 'LabelWriter_330_Turbo' started by ''.
I [10/May/2005:11:56:47 -0400] Adding start banner page "none" to job 604.
I [10/May/2005:11:56:47 -0400] Adding end banner page "none" to job 604.
I [10/May/2005:11:56:47 -0400] Job 604 queued on 'LabelWriter_330_Turbo' by 'work'.
I [10/May/2005:12:06:05 -0400] Adding start banner page "none" to job 605.
I [10/May/2005:12:06:05 -0400] Adding end banner page "none" to job 605.
I [10/May/2005:12:06:05 -0400] Job 605 queued on 'LabelWriter_330_Turbo' by 'work'.
I [10/May/2005:12:08:30 -0400] Adding start banner page "none" to job 606.
I [10/May/2005:12:08:30 -0400] Adding end banner page "none" to job 606.
I [10/May/2005:12:08:30 -0400] Job 606 queued on 'LabelWriter_330_Turbo' by 'work'.

The reason I need to use lp is I am working on an python application for OS X which needs basic printing support and I figured this is the besy way to do it.

All help is appreciated! :)
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
The first thing that comes to mind, is does the printer you are using support raw?

Also you might check the printers error log, to get a status on what may have happened to your print job. From what i see it appears to print your job, but you get nothing out.

A suggest, if that is the only printer on your system. make it the default, so you don't have to keep typing that long name.
 
OP
A

Ashcrow

Guest
rman said:
The first thing that comes to mind, is does the printer you are using support raw?

Also you might check the printers error log, to get a status on what may have happened to your print job.

From what i see it appears to print your job, but you get nothing out.

Exactly.

A suggest, if that is the only printer on your system. make it the default, so you don't have to keep typing that long name.

Thanks for the fast reply. Making it default yeilds the same results. The printer does support raw as the same command works on a my Linux test box. There doesn't seem to be a specific printer log outside of the cups log (which is included in the original post).

Is there maybe another way to access printing inside OS X that might be better than using lp/lpr inside a program?
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
Making the printer as default was meant to help in reducing the number of characters you have to type in order to print your document.

Since this printer support the raw format and works in the linux environment. I am wondering if there is a problem with the OS X printer drivers for the LabelWriter.

How did you create the print queue? Did you use the Printer Setup Utility application or unix commands?
 
OP
A

Ashcrow

Guest
rman said:
Making the printer as default was meant to help in reducing the number of characters you have to type in order to print your document.

Since this printer support the raw format and works in the linux environment. I am wondering if there is a problem with the OS X printer drivers for the LabelWriter.

How did you create the print queue? Did you use the Printer Setup Utility application or unix commands?

I used the Printer Setup Utility.

Here is my cups.conf if that helps.

Code:
# Printer configuration file for CUPS v1.1.20rc1
# Written by cupsd on Tue May 10 11:56:21 2005
<DefaultPrinter Internal_Modem>
Info Internal Modem
Location HackNET
DeviceURI fax://dev/cu.modem
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer LabelWriter_330_Turbo>
Info LabelWriter 330 Turbo
Location HackNET
DeviceURI file:///dev/null
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer ricoh_laserap>
Info ricoh_laserap
Location TUX-NET
DeviceURI smb://RICOH:PRINTER@TUX-NET/UPTECH/ricoh_laserap
State Stopped
StateMessage Paused
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Notice the /dev/null ... I figure it has something to do with the way OS X does usb (maybe no device blocks). Maybe not.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Have you tried using lpr instead of lp? Do you get the same errors?
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
The /dev/null bother me also, it is known as the bit bucket. How is the other printer connected?

Also i don't lpr will work, because that is normally used with remote printers, but you can give it a shot.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
lpr works for me with my Epson 740i plugged into a USB hub. Used it to print a .jpeg from Terminal. Had never heard of lp till this thread.

Agree with you about the /dev/null on the LabelWriter.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top