Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last Steps to Get a Network Printer Up & Running

Status
Not open for further replies.

joemama613

IS-IT--Management
May 14, 2003
66
US
I am setting up a network printer. It is a Brother HL-1440, using a Netgear Print Server.

In /etc/hosts, I have listed its name (hl1440) and IP address. I can ping it by name. If I issue the command lpstat -a, it says "hl1440 accepting requests".

If I go into scoadmin-printers-HP network Printer manager-option 5-option 1, it actually prints the test text file (however, without a form feed, I should add).

Knowing all of the above, by what mechanism do I now send a file to this printer?

Thanks,

Joe
 
Have you executed option 6 of hpnp ?

Hope This Help
PH.
 
PH,

Okay, did that, but had to guess at some of the answers, though.

Now that it's done, what command do I use to send a file to the printer? Say I wanted to send the /etc/passwd file, I would start by saying "cat /etc/passwd | ????".

What would follow the piping sign?

Thanks,

Joe
 
cat /etc/passwd | lp -dYourPrinterName

Hope This Help
PH.
 
PH,

Thanks for your continued help. I executed that very command, and the response was "can't execute 'lp' command". Any further ideas?

Joe
 
Which version of SCO and patches applied ?

Hope This Help
PH.
 
PH,

So that I give you the correct information, please tell me where to look in the system for that info (version and patches) ?

Thanks,

Joe
 
For version:
Code:
uname -X
For patches:
Code:
custom

Hope This Help
PH.
 
PH,

Okay, Version is 5.0.4.

Patches are: Release Supplement, Year 2000 Supplement, and oss601a Software Manager Patch.

Thanks,

Joe
 
And can you print as superuser ?

Hope This Help
PH.
 
PH,

The only way that I have tried to print is in superuser, and I get the response that I told you, "can't execute 'lp' command".

Joe
 
Does whence -v lp return anything? It should be in /usr/bin/lp.

If you could post the output of ls -l /usr/bin/lp and ls -lL /usr/bin/lp that may help.

Annihilannic.
 
Ann,

It is in /usr/bin, and the permissions are 722, or -rwx--x--x. Can you help further?

Joe
 
In 5.0.5, mod=--x--s--x, own=bin, grp=lp

Hope This Help
PH.
 
Since the permissions and ownership appear to be wrong, it may be advisable to run integrity -e to check whether any other files on your system are affected. If there are others, you can run fixmog to correct them.

Annihilannic.
 
Ok Everyone, I am at the end of my rope. After doing everything in my power (and all of yours), it does not work. I stil get that stubborn message 'can't execute 'lp' command'.

Printer is running, accepting requests, printing a text test page, lpsched is running, permissions are set, owner and group is set, logged in as superuser, tried both my right hand and my left, even found a place that asked for the mac address of the printer (I put it in), and I still get the message "can't execute 'lp' command".

I have some straws here up for grasping. Please take your wildest best shot!!!!

Thanks,

Joe
 
Try getting a sum or cksum of /usr/bin/lp and comparing it to another 5.0.4 system (unfortunately I don't have access to one).

What permissions does it have now after running fixmog?

Perhaps try running it with scotruss from to figure out where or why it's bailing out?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top