View Single Post

   
  #6 (permalink)  
Old 02-20-2008, 09:05 AM
Trygve Selmer
 
Posts: n/a
Default Re: Perplexing Printing Problem lprng

No_One wrote:
>
> I ran into a problem the other day, instead of running the correct command I
> ran cat output /dev/lp0 no redirect. Natually nothing printed, however, now
> nothing else will print as well, I get an error message Device or resource
> busy. I can't get the resource un-busy.


You have overwritten your device file, ie. /dev/lp0 is now an ordinary
text file. Fix it as explained by Douglas (do this as root):

# rm /dev/lp0
# mknod /dev/lp0 c 6 0
# chown root.lp /dev/lp0
# chmod 0660 /dev/lp0

> I've deleted lock file, temp file, spooled files, I've tired lpc to kill the
> job, I've ps aux'd looking for a pid to kill, I started and stopped rc.lprng,


Make sure you have the spool file /var/spool/lpd with correct
permissions. If not, fix it by reinstalling the lprng package.

Then try "cat output.txt > /dev/lp0", hopefully it will work :-)

Reply With Quote