From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,f7269c227c80b5ac X-Google-Attributes: gidfcda7,public X-Google-Thread: fa528,f7269c227c80b5ac X-Google-Attributes: gidfa528,public X-Google-Thread: f7344,f7269c227c80b5ac X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-05-09 14:46:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.online.be!195.129.110.18.MISMATCH!bnewspeer00.bru.ops.eu.uu.net!bnewsifeed02.bru.ops.eu.uu.net!bnewsifeed03.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!read.news.be.uu.net!not-for-mail Date: Thu, 9 May 2002 23:41:44 +0200 From: Stefaan A Eeckels Newsgroups: comp.unix.tru64,comp.sys.hp.hpux,comp.os.vms Subject: Re: Capellas: Linux, Windows Will 'Eviscerate' Unix Message-ID: <20020509234144.2dcf8fc9.hoendech@ecc.lu> References: <20020507160322.1bbf5726.hoendech@ecc.lu> <20020508160416.4d076561.hoendech@ecc.lu> <20020509001631.42734cd5.hoendech@ecc.lu> Organization: E.C.C. sa - Computer Consultants X-Newsreader: Sylpheed version 0.7.5 (GTK+ 1.2.7; sparc-sun-solaris2.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: pool352-194-7-196-191.uunet.lu X-Trace: 1020980745 read.news.be.uu.net 7114 194.7.196.191 X-Complaints-To: abuse@be.uu.net Xref: archiver1.google.com comp.unix.tru64:7569 comp.sys.hp.hpux:20678 comp.os.vms:77141 On 9 May 2002 14:39:05 GMT damercer@mmm.com (Dan Mercer) wrote: > In article <20020509001631.42734cd5.hoendech@ecc.lu>, > Stefaan A Eeckels writes: > > On 8 May 2002 14:25:03 GMT > > damercer@mmm.com (Dan Mercer) wrote: > > > >> In article <20020508160416.4d076561.hoendech@ecc.lu>, > >> Stefaan A Eeckels writes: > > > >> > There are no binary configuration files in System V derived > >> > systems. > >> > >> Although this is largely true, it is not completely true. While > >> the BSD printing system (LPR) is entirely based on ASCII config > >files,> regrettably the SysV system (LPD) is not. This makes it very > >difficult> to work with or to duplicate to a mirror server. > > > > Did you check this? The configuration files are under /etc/lp, > > and they're all text files. > > Only if the printers are connected to the LPT port. If you have > network LPD or LPR printers, then the ASCII text files tell you > very little. For instance I have a printer attached to my NT > PC that I access via LPR. What files actually point to its location: > > $ find /var/spool/lp \ > > /etc/lp \ > > /usr/lib/lp > > -follow \ > > -type f \ > > -exec grep -iq w09876 {} \; \ > > -exec file {} \; > /var/spool/lp/request/w09876/.sendingstatus: ascii text > /var/spool/lp/pstatus: data > /var/spool/lp/qstatus: data > /var/spool/lp/default: ascii text > /var/spool/lp/outputq: data > > The three files that control where the output is sent, pstatus > qstatus amd outputq are all binaries. Their contents are > constructed by the lpadmin command and only queryable by the lpstat > command. I have never been able to figure out how to clone a > configuration from one LPD system to another. I've no intentions to start splitting hairs. LPD has been implemented anew for almost every strain of SVID compliant Unix. The current big three (Solaris, AIX and HP-UX) each have a different implementation. For example, lpadmin is a binary in HP-UX, an shell script in Solaris, and absent in AIX... Nonetheless, files in /var (even when they are created through a command that has "admin" as part of its name) shouldn't really be configuration files, but rather run-time files. The HP-UX implementation of LPD is rather crummy, because the only place it stores the destination is in pstatus, making it effectively a configuration file. Naugthy, naughty, naughty HP. Solaris is better, and stores this information in /etc/printers.conf. Thanks for letting me remember one of the myriad of reasons why LPD sucks rocks through a straw. -- Stefaan -- Microsoft treats IT managers the way Proctor & Gamble treats nine-year-old prospective consumers: lots of noise, bright colors, and jumping around. Other software vendors just wish they could be so successful. -- Cameron Laird in comp.lang.tcl