Re: lpr error messages

From: Richard Lynch (ceo_at_l-i-e.com)
Date: 09/30/04

  • Next message: Richard Lynch: "Re: DHCP Problems"
    Date: Wed, 29 Sep 2004 19:43:23 -0700 (PDT)
    To: "Gary Schenk" <gwschenk@socal.rr.com>
    
    

    Gary Schenk wrote:
    > I cannot print from either X or the command line. It was working
    > fine until a few hours ago. Any suggestions on where to start
    > on this would be much appreciated.
    >
    > Here is an example:
    >
    > bash-2.05b$ lpr test.txt
    > /usr/bin/lpr: line 12: */5: No such file or directory
    > /usr/bin/lpr: line 15: 0: command not found
    > /usr/bin/lpr: line 18: 1: command not found
    > /usr/bin/lpr: line 19: 15: command not found
    > /usr/bin/lpr: line 20: 30: command not found
    > /usr/bin/lpr: line 25: 1,31: command not found
    > /usr/bin/lpr: line 28: 1: command not found
    >
    > lptest > /dev/lpt0 produces output to the printer.
    >
    > bash-2.05b$ grep lpd_enable /etc/rc.conf
    > lpd_enable="YES"
    >
    > I'm thinking that /usr/bin/lpr must be corrupted. I'm not
    > sure how to go about testing that theory, or what to do
    > if that is the case. I've searched the list archives and
    > googled to no avail.

    The way I read this, lpr is expecting to get a PostScript file, and you
    are feeding it a TEST file.

    I'm even willing to bet that on line 12 of your text file, there is a */5,
    which lpr is valiantly attempting to interpret as a PostScript command.

    Similarly, the other lines mentioned in the error output above indicate
    that all the other lines in your text file start with integers such as 0,
    1, 15, etc.

    So all you really need to do now is find some way to convert your TEXT
    file to a PostScript file. Or convince lpr that it should accept text
    files, and somehow convert them internally to PostScript.

    -- 
    Like Music?
    http://l-i-e.com/artists.htm
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Richard Lynch: "Re: DHCP Problems"

    Relevant Pages

    • Re: [Help] Printing problem in Mac OSX Leopard
      ... I think the issue is that the operating system lpr command (used by MATLAB to send the file to your printer) doesn't recognize the IP address as a printer. ... HP LaserJet 1320 series ...
      (comp.soft-sys.matlab)
    • printing problems with CUPS on localhost server
      ... I just set up my FreeBSD box to act as a printserver. ... from itself using lpr. ... The problem still exists however, now instead of getting error messages, ... The lp or lpr command that you will use is also going ...
      (freebsd-questions)
    • Re: LPI Linux Level 1 Exam 102 Question
      ... Which command allows you to make a shell variable visible to ... A lpr -o delete foobar.txt ... B To run a command as a process in a sub-shell. ... shell script anyway. ...
      (comp.os.linux.misc)
    • Re: LPI Linux Level 1 Exam 102 Question
      ... Which command allows you to make a shell variable visible to ... A lpr -o delete foobar.txt ... B To run a command as a process in a sub-shell. ... shell script anyway. ...
      (comp.os.linux.misc)
    • Re: [Help] Printing problem in Mac OSX Leopard
      ... I can print the figure using command "print" in the command ... Matlab 2007a Student version. ... lpr: The printer or class was not found. ... If you're adventurous you can set a breakpoint in MATLAB's print command ...
      (comp.soft-sys.matlab)