New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.3 - OS X (10.3.9) and lp


Post Reply New Thread Subscribe

 
Thread Tools
Ashcrow
Guest
 
Posts: n/a

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! :-)
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
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.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Ashcrow
Guest
 
Posts: n/a

Quote:
Originally Posted by rman
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.

Quote:
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?
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
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?

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Ashcrow
Guest
 
Posts: n/a

Quote:
Originally Posted by rman
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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,900
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Have you tried using lpr instead of lp? Do you get the same errors?

Craig Domingue - resident redneck.
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
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.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,900
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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.

Craig Domingue - resident redneck.
QUOTE Thanks

Post Reply New Thread Subscribe


« I think Tiger is getting it's own partition.... If I can.. | User Problem? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 11:40 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?