From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111240,c5cb1ad4d0d2aa0c,start X-Google-Attributes: gid111240,public X-Google-Thread: 111c93,76d7326444609fe5 X-Google-Attributes: gid111c93,public X-Google-Thread: 1103af,c5cb1ad4d0d2aa0c,start X-Google-Attributes: gid1103af,public From: Norm Jacobs Subject: Re: lpr problem with /dev/printer Date: 1999/03/25 Message-ID: <36FB0FC6.7A8445DB@USA.Net>#1/1 X-Deja-AN: 459220591 Content-Transfer-Encoding: 7bit References: <36F8A2FF.8CBCC83F@sangdu.kjist.ac.kr> <7ddh2j$g7e$1@news.kjist.ac.kr> <36FB0C2E.2E6609D8@sangdu.kjist.ac.kr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@uswest.net X-Trace: news.uswest.net 922423189 207.225.29.25 (Thu, 25 Mar 1999 22:39:49 CDT) Organization: U S WEST Interprise MIME-Version: 1.0 NNTP-Posting-Date: Thu, 25 Mar 1999 22:39:49 CDT Newsgroups: comp.os.linux.alpha,comp.os.linux.misc,linux.redhat.misc /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. >