View Single Post

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

On Sun, 05 Jun 2005 04:36:58 +0000, No_One wrote:

>
> I have my printer fuction set up to use lpr etc....
>
> I run wp5.1 in dosemu for business letters and have wp51 print the
> contents to a postscript file called output.ps. I simply switch to another
> window and run the command cat output > /dev/lp0
>
> 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.
>
> 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,
>
> I can't get rid of the error message, and nothing else will print.
>
> Naturally a reboot solves the problem but that can't be the solution.
>
> Any ideas
>
> ken
>

Check the devica and permissions on /dev/lp0 (with ls -la):
crw-rw---- 1 root lp 6, 0 1995-04-27 17:17 /dev/lp0

If it doesn't look like this, then repair the device as follows (as root
user):

rm /dev/lp0
mknod /dev/lp0 c 6 0
chown root.lp /dev/lp0
chmod ug+rw,o-r /dev/lp0


Reply With Quote