From: Norm Jacobs <Norm.Jacobs@USA.Net>
Subject: Re: lpr problem with /dev/printer
Date: 1999/03/25 [thread overview]
Message-ID: <36FB0FC6.7A8445DB@USA.Net> (raw)
In-Reply-To: 36FB0C2E.2E6609D8@sangdu.kjist.ac.kr
/dev/printer is a unix domain socket used by lpr, lpq, lprm, and lpc to talk to
a local lpd. The socket is created by lpd when it starts. lpd must be running
for
it to exist.
-Norm
[root@mumble jacobs]# ls -l /dev/printer
srw------- 1 root root 0 Mar 20 04:00 /dev/printer
[root@mumble jacobs]# /etc/rc.d/init.d/lpd stop
Shutting down lpd: lpd
[root@mumble jacobs]# ls -l /dev/printer
ls: /dev/printer: No such file or directory
[root@mumble jacobs]# /etc/rc.d/init.d/lpd start
Starting lpd: lpd
[root@mumble jacobs]# ls -l /dev/printer
srw------- 1 root root 0 Mar 25 21:39 /dev/printer
[root@mumble jacobs]#
NewsMan wrote:
>
> newsman@sangdu.kjist.ac.kr wrote:
>
> > NewsMan (newsman@sangdu.kjist.ac.kr) wrote:
> > : I do not understand why I have this problem:
> >
> > : $ lpr -h -Plp faxcover.ps
> > : lpr: connect: No such file or directory
> > : jobs queued, but cannot start daemon.
> >
> > Wow! I solved the problem by myself at last. /dev/printer has
> > somehow been removed from the dev directory. I have no idea
> > how it was removed. How could I ever think that /dev/printer
> > must be there in addition to /dev/lp[0-3]? BTW, when I first
> > reinstall dev-*.rpm, I got
> >
> > prw-------
> >
> > from 'ls -l /dev/pritner'. Then, after I print something, it changed to
> >
> > srw------
> >
> > What are those "p" and "s" bits?
> >
> > Thanks
> >
> > G. Hugh Song
>
> Further findings: It is a general problem of at least RedHat's Linux
> on both Alpha and Intel platforms.
> Playing with printtool somehow deletes /dev/printer, which is
> known to be one of the so-called sockets (socket for what?).
>
> At what point does this device disappear? Searching through the
> dejanews archive of comp.os.linux.alpha showed that people
> had similar problems in the past. It must be a bug which nobody
> has really figured out yet.
>
prev parent reply other threads:[~1999-03-25 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-24 5:00 lpr problem with /dev/lp0 NewsMan
1999-03-25 5:00 ` newsman
1999-03-26 5:00 ` lpr problem with /dev/printer NewsMan
1999-03-25 5:00 ` Norm Jacobs [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox