Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I do have CUPS put into my notebook by an acquaintance sometime ago. However, on my HP mini notebook, I have had this constant problem of my HP Laserjet ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Location
    Bangi, Selangor, MALAYSIA
    Posts
    79

    Need help with what I see on the terminal


    Hi,
    I do have CUPS put into my notebook by an acquaintance sometime ago.
    However, on my HP mini notebook, I have had this constant problem of my HP Laserjet Professional P1102 printing and not printing as it likes! One time I tried the YAST - I have been on Open SUSE 11.4, even right now! Yet to upgrade. Via YAST, I selected this printer as the default printer. It worked for a while. FYI I am using this printer for my MAC as well – and with MAC there is no problem to do printing!

    I have this file “Tadika Nur Khalifah.odt “ saved in my document. After reading the “Command-line Printing and options – CUPS 1.4.6- Mozilla Forefox” page, I decided to give it a go. To my dismay, after the following tries, which I copied from the terminal for your scruitiny, I could not get the printer to print!!!


    mhismail@netbook:~> lpr -d Tadika Nur Khalifah.odt
    lpr: Warning - 'd' format modifier not supported - output may not be correct!
    lpr: Error - unable to access "Tadika" - No such file or directory
    mhismail@netbook:~> lpr -d tadikanurkhalifah.odt
    lpr: Warning - 'd' format modifier not supported - output may not be correct!
    lpr: Error - unable to access "tadikanurkhalifah.odt" - No such file or directory
    mhismail@netbook:~> lpr -d tadikanurkhalifah
    lpr: Warning - 'd' format modifier not supported - output may not be correct!
    lpr: Error - unable to access "tadikanurkhalifah" - No such file or directory
    mhismail@netbook:~> lp -d tadikanurkhalifah
    lp: The printer or class was not found.
    mhismail@netbook:~> lpstat -d
    system default destination: hplaserjetprofessionalp1102
    mhismail@netbook:~> lp -d hplaserjetprofessionalp1102 Tadika Nur Khalifah.odt
    lp: Error - unable to access "Tadika" - No such file or directory
    mhismail@netbook:~> lp -d halaserjetprofessionalp1102 Tadika Nur Khalifah
    lp: Error - unable to access "Tadika" - No such file or directory
    mhismail@netbook:~> lp -d hplaserjetprofessionalp1102 TadikaNurKhalifah
    lp: Error - unable to access "TadikaNurKhalifah" - No such file or directory
    mhismail@netbook:~> lp -d hplaserjetprofessionalp1102 TadikaNurKhalifah.odt
    lp: Error - unable to access "TadikaNurKhalifah.odt" - No such file or directory
    mhismail@netbook:~>




    I am praying you guys can help me.Thanks

  2. #2
    Just Joined!
    Join Date
    Oct 2011
    Posts
    17
    There is no option "d" for lpr. The manual says:

    COMPATIBILITY
    The "c", "d", "f", "g", "i", "n", "t", "v", and "w" options are not
    supported by CUPS and produce a warning message if used.

    type: man lpr to see the manual and the options you have for lpr

    When using lp though the problem is that you are not properly pointing to the file. Check the location and name of your file correctly. You can maybe drag and drop the file on top of the terminal to be sure there's no mistake in the path to get to the file.

    Hope it helps!

  3. #3
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    If a file name has spaces in it, you must put it in quotes.

    "Tadika Nur Khalifah.odt"

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Oct 2010
    Location
    Bangi, Selangor, MALAYSIA
    Posts
    79
    Quote Originally Posted by rcgreen View Post
    If a file name has spaces in it, you must put it in quotes.

    "Tadika Nur Khalifah.odt"
    Thanks guys. Will follow that advice and will post the result of your suggestion after I have handled the challenge I am having with getting my HP mini on to the internet again -- it may take some time though. I really appreciate your responses and hope you will bear with my clueless posts - until you see a more 'intelligent' post from me -- later!

Posting Permissions

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