LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2002, 06:40 AM   #1
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Printing doesn't work but echo > /usb/lp0 works & Testpage works


I have used apsfilter to setup my printer and the testpage it prints comes out fine. I can also '''echo "test" > /dev/usb/lp0''' and that works. I cannot print in any programs though. Im guessing that their just not configured propperly or some global printer config file they access isn't setup but i don't know what. I have a HP Deskjet 930c via USB.

Last edited by Hegemon; 07-31-2002 at 06:42 AM.
 
Old 08-01-2002, 12:51 AM   #2
codejockey
LQ Newbie
 
Registered: May 2002
Posts: 6

Rep: Reputation: 0
Lightbulb

A couple of thoughts:

(1) is lpd running? (ps -ef | egrep lpd should show lpd running in addition to your egrep process)
(2) try lpc status to see the status of each printer
(3) review /var/log/lpr (or similar) to check for errors
(4) review /etc/printcap entry for your printer to make sure all directories/files exist

Hope this helps.
 
Old 08-10-2002, 02:55 AM   #3
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
The lpc shows the following
Printer Printing Spooling Jobs Server Subserver Redirect Status/(Debug)
lp@ender enabled enabled 0 none none

The jobs do increase when i try to print somthing.

I dont have a /var/log/lpr
I do have a /var/log/spool but its empty (there are several spool.1 etc all the same)

I have no idear how to read the /etc/printcap file
 
Old 08-15-2002, 01:13 PM   #4
codejockey
LQ Newbie
 
Registered: May 2002
Posts: 6

Rep: Reputation: 0
Lightbulb

The man page for printcap will tell you more than you want to know about the /etc/printcap file. The main thing to check is that any pathnames given in the entry for your printer are correct. For example, the following entry is for a laserjet 4L printer on /dev/lp0:

#HP LaserJet 4L entry (local, 300 dpi, B&W)
#laser|hplj4|HP laserjet 4L:\
# :lp=/dev/lp0:\
# :sd=/var/spool/lpd/lp0-laser:sh:\
# :lf=/var/spool/lpd/lp0-laser/lp-err:\
# :if=/usr/local/filter/ljet4l-filter:\
# :mx#0

So, to check this entry, I'd make sure that all of the paths referenced did in fact exist (/dev/lp0, /var/spool/lpd/lp0-laser, /usr/local/filter/ljet4l-filter, etc.). Without going into the details of each field, you can still make sure that any path specified is valid. If you find a missing directory/file/device, either create it or change the printcap entry to match reality.

If you are using a filter (the if= field in my example), verify that the filter is executable. Also, if your filter is a script, check the first line of the filter in case it uses a construct such as #! /usr/bin/perl or similar -- and make sure that any path is also correct (e.g., /usr/bin/perl really exists). You can also use set -x in the filter (again, if it's a script) to trap any errors that may not be visible to you now.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
icmp echo reply wont work pali Linux - Networking 2 08-17-2005 12:34 PM
echo does not work in php code suchi_s Programming 3 10-21-2004 03:39 AM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 02:59 PM
Strange USB problems - it works AND it works not Nightfrost Linux - Hardware 2 10-07-2004 06:07 PM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration