Results 1 to 8 of 8
  1. #1
    Ashcrow
    Guest
    Question OS X (10.3.9) and lp
    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! :-)

  2. #2

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

  3. #3
    Ashcrow
    Guest
    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.

    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?

  4. #4

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

  5. #5
    Ashcrow
    Guest
    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.

  6. #6

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,561
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Have you tried using lpr instead of lp? Do you get the same errors?
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  7. #7

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

  8. #8

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,561
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    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.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •