/usr/bin/lp does not work with HP OJPro 7600

Asked by William D. Tallman

HP OfficeJet Pro 7600 on an ethernet LAN installed with cups-1.2.11 and hplip-1.7.4a on Slackware 12.0. Installed printer with the CUPS localhost:631 pages, using hp-makeuri. Printer is set as default. So far, everything works as it should, except for Gimp-2.2 and other apps that use /usr/bin/lp. What am I missing here? If this is the wrong forum, where should I ask?

Thanks,

William D. Tallman

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
dwelch91
Solved:
Last query:
Last reply:
Revision history for this message
dwelch91 (dwelch91) said :
#1

do you get an error message or just no output?

On Tue, May 6, 2008 at 1:46 PM, William D. Tallman <
<email address hidden>> wrote:

> New question #32267 on HPLIP:
> https://answers.launchpad.net/hplip/+question/32267
>
> HP OfficeJet Pro 7600 on an ethernet LAN installed with cups-1.2.11 and
> hplip-1.7.4a on Slackware 12.0. Installed printer with the CUPS
> localhost:631 pages, using hp-makeuri. Printer is set as default. So far,
> everything works as it should, except for Gimp-2.2 and other apps that use
> /usr/bin/lp. What am I missing here? If this is the wrong forum, where
> should I ask?
>
> Thanks,
>
> William D. Tallman
>
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
William D. Tallman (wtallman) said :
#2

Both.

Gimp uses the command 'lp -s -dHP_Printer -oraw' (HP_Printer is the printer name). Other apps just use 'lp'. It seemed to me that the lack of space between the switches and arguments (-oraw, for instance) was not an issue before with the Gimp printing. It fails with no error message, probably because of the '-s'. But other apps that just use 'lp' fail silently as well.

On the command line, however:

/* ~/echotest is the test file. */

 [wtallman@ansible ~]$ lp echotest
/usr/bin/lp: line 1: This: command not found
[wtallman@ansible ~]$ lp -d HP_Printer echotest
/usr/bin/lp: line 1: This: command not found
[wtallman@ansible ~]$ cat echotest > /usr/bin/lp
bash: /usr/bin/lp: Permission denied
[wtallman@ansible ~]$ su
Password:
[root@ansible /home/wtallman]# cat echotest > /usr/bin/lp
[root@ansible /home/wtallman]# /* fails silently */

What else?

Thanks,

William D. Tallman

Revision history for this message
Best dwelch91 (dwelch91) said :
#3

Well, I am very suspicious of "/usr/bin/lp: line 1: This: command not found"

Could you do:

$ less /usr/bin/lp

On Tue, May 6, 2008 at 2:48 PM, William D. Tallman <
<email address hidden>> wrote:

> Question #32267 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/32267
>
> Status: Answered => Open
>
> William D. Tallman is still having a problem:
> Both.
>
> Gimp uses the command 'lp -s -dHP_Printer -oraw' (HP_Printer is the
> printer name). Other apps just use 'lp'. It seemed to me that the lack
> of space between the switches and arguments (-oraw, for instance) was
> not an issue before with the Gimp printing. It fails with no error
> message, probably because of the '-s'. But other apps that just use
> 'lp' fail silently as well.
>
> On the command line, however:
>
> /* ~/echotest is the test file. */
>
> [wtallman@ansible ~]$ lp echotest
> /usr/bin/lp: line 1: This: command not found
> [wtallman@ansible ~]$ lp -d HP_Printer echotest
> /usr/bin/lp: line 1: This: command not found
> [wtallman@ansible ~]$ cat echotest > /usr/bin/lp
> bash: /usr/bin/lp: Permission denied
> [wtallman@ansible ~]$ su
> Password:
> [root@ansible /home/wtallman]# cat echotest > /usr/bin/lp
> [root@ansible /home/wtallman]# /* fails silently */
>
> What else?
>
> Thanks,
>
> William D. Tallman
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
William D. Tallman (wtallman) said :
#4

Ouch!!!

Dunno what I was thinking with that stupid command 'cat echotest > /usr/bin/lp'. I overwrote the executable! I can't even think when I did that first; damnedest senior moment I've had in a long time! Out came the installation CDs; find the cups tgz file; untar it; fine the executables; remove the ASCIIized files; copy over the real ones; run 'lp echotest'. Watch and listen as the printer fires up and prints the file!

Wipe egg from face.

Thanks,

William D. Tallman

Revision history for this message
William D. Tallman (wtallman) said :
#5

Thanks dwelch91, that solved my question.