1820636 Members
1671 Online
109626 Solutions
New Discussion юеВ

cannot print through lpd

 
Martin Robinson
Frequent Advisor

cannot print through lpd

I have sent a print job to the lp subsystem and all seems ok. Apart from the print does not produces any output to the print devices. I have stopped and started the lp spooler and checked the lp log and can see nothing. I have tried to remove the the schedlock file and still the system will not print. Can you give me anytips. I have also power cycled the system
6 REPLIES 6
Rainer von Bongartz
Honored Contributor

Re: cannot print through lpd


First Tip:

Disable the printer and print something to this disabled printer:

Does lpstat -o show the print job ????

Does /var/spool/lp/request/
exist ???


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
S.K. Chan
Honored Contributor

Re: cannot print through lpd

Rainer's idea is where I would start to find out if when you run the lp command does the spool file got created at the first place and it's easier to check is the printer is disable .. (example printer name = lj4)
# disable lj4
# lp -dlj4 testfile
# lpstat -t|grep lj4
==> Does the spool file goes into the queue ?

If it does, enable the printer to get it spool to the next destination (the printer server or directly to the printer).
# enable lj4

If it does not appear in the sppol queue, check /var/spool/lp/request/lj4 directory. Does the spool file exist here ?

Once the spool file got sent out after you enable your printer, it means there is nothing wrong with the lp spooler on your machine, it's probably the printer server or the printer itself.
Wodisch
Honored Contributor

Re: cannot print through lpd

Hi Robert,

due ti your subject: could it be you have the file to "lpd", but not "lp"???
You must "lp" for that...

Just an idea,
Wodisch
MANOJ SRIVASTAVA
Honored Contributor

Re: cannot print through lpd

Hi Robert

lpstat -t will give you the status of the queue.If you see the printer queue then do the following.

1.cancel printername-queue no.
2.lpshut
3.cd /usr/spool/lp
4.rm FIFO
5.rm SCHEDLCK
6.enable printer naem
7.accpet printer name
8.lpsched

you will be good to go.


Manoj Srivastava
kish_1
Valued Contributor

Re: cannot print through lpd

I think something do with the permission, please check the permission of the files are intact, in /var also , really I forget which file it looks.
share the power of the knowledge
Steve Steel
Honored Contributor

Re: cannot print through lpd

Hi

1)lpshut

Do you see any lp processes running.
If so kill them

2)cd /var/spool/lp
rm SCHEDLOCK FIFO

3)lpsched -v
This write more in the log

4)ps -ef|grep lp . Is it running

5)lpstat -t

6)Has you /var/adm/lp/log been written.
If 4 is bad what is in it.

steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)