System V printing system

The printing subsystem of UNIX System V is one of several standardized systems for printing on Unix, and is typical of commercial System V-based Unix versions such as Solaris and SCO OpenServer. A system running this print architecture could traditionally be identified by the use of the user command lp as the primary interface to the print system, as opposed to the BSD lpr command (though some systems provide lpr as an alias to lp).

Typical user commands available to the System V printing system are:

  • lp: the user command to print a document
  • lpstat: shows the current print queue
  • cancel: deletes a job from the print queue
  • lpadmin: a system administration command that configures the print system
  • lpmove: a system administration command that moves jobs between print queues

History

In the Unix programming model, device files are special files that act as access points to peripheral devices such as printers. For example, the first line printer on a Unix system might be represented by a file lp1 in the device (/dev) directory, i.e., /dev/lp1. Using the file metaphor, a document could by printed by "copying" the file onto the device: cp document /dev/lp1. While this worked well enough for the case where there was one printer per user, this model did not scale out well to multiple users having to share one printer.[1] The solution was to create a queue (or "spool") of documents to be printed and use a daemon (system process) to manage this queue and send the documents to the printer in the order in which they arrived.

Such a system, with an lp command to send documents to the queue, was first introduced in 1973 in Version 4 of Unix.[2] By the release of System V Release 4, the suite of utilities had grown to include commands for canceling print jobs, moving jobs among queues, enabling and disabling queues, enabling and disabling a job scheduler daemon, and status reports of the print system.[3] The lp command handled queue documents to be printed[3] and had over 20 different options that controlled the appearance of the document and its place in the queue,[4] and even handled email notification of the user once the document had finished printing.[2] The command returned a "job id" which could be used by the cancel or lpstat commands to remove the job from the queue or check on its progress, respectively.[5] While the system was considered to be quite complex to set up and administer, most uses were expected to only use these three commands.[4]

With its distribution in the influential AT&T Unix System V, the interface if not the implementation became the standard for users' control over printers. The lp command was included as a requirement in the POSIX.2 standard,[6] and a command by that name appeared in the subsequent lpr, LPRng and CUPS printing systems. (In SVR4 derivates like SCO UNIX, the lp command was simply an alias for the lpr command used by the BSD-based lpr system.[7])

As late as 1996, Running Linux stated "The Linux printing software consists of the UNIX standard lp and lpr software,"[8] but by 1999 support for lp was waning and the third edition simply stated "The lpr command prints a document on Linux."[9] By 2003, a survey of the Debian, Mandrake, Red Hat, Slackware and SuSE distributions showed that all of them were running some combination of lpr, LPRng and CUPS.[10]

The original System V printing system remains proprietary; however, the Solaris print system, heavily modified from the original, has been released as open source software as part of the OpenSolaris project. The Common Unix Printing System emulates both System V and Berkeley print architectures on the interface level, though its internal architecture is different from both.

Criticism

In his introduction to a simplified configuration system for lp, author Peter Gray of the University of Wollongong described several weaknesses of the version shipping with the then-current Solaris (operating system) version 2.

  • As opposed to the single daemon used by the simpler BSD lpr system, the lp system used separate daemons, one for scheduling and one for remote communication.
  • The lpr system could be controlled with a single configuration file while lp requires a separate program for administration.
  • The lp system did support permissions, but the model did not scale to hundreds of users.

As a result, Gray observed that "many administrators choose to simply run the old lpr/lpd system on the SVR4 boxes."[11]

See also

References

  1. ^ Kofler, Michael (1997). "6.4 Printer Configuration". Linux: Installation, configuration and use. Addison-Wesley. pp. 146–150. ISBN 0-201-17809-5.
  2. ^ a b Arthur, Lowell Jay (1986). Unix Shell Programming. John Wiley & Sons. p. 190. ISBN 0-471-84932-4.
  3. ^ a b Nemeth, Evi; Snyder, Garth; Seebass, Scott (1989). "Printing Under ATT". UNIX System Administration Handbook (1st ed.). Prentice Hall. pp. 164–173. ISBN 0-13-933441-6.
  4. ^ a b Rosen, Kenneth H.; Rosinski, Richard R.; Farber, James M. (1990). UNIX System V Release 4: An Introduction for New and Experienced Users. Osborne McGraw-Hill. pp. 117–121. ISBN 0-07-881552-5.
  5. ^ Sobell, Mark G. (1985). A Practical Guide to UNIX System V. Benjamin/Cummings. pp. 45–46. ISBN 0-8053-8915-6.
  6. ^ Gardner, James (1994). Learning Unix (2nd ed.). SAMS. pp. 144. ISBN 0-672-30457-0.
  7. ^ Cutler, Ellie (1994). SCO UNIX in a Nutshell. O'Reilly. pp. 75–76. ISBN 1-56592-037-6.
  8. ^ Welsh, Matt; Kaufman, Lar (1995). Running Linux (1st ed.). O'Reilly. p. 33. ISBN 1-56592-100-3.
  9. ^ Welsh, Matt; Dalheimer, Kalle; Kaufman, Lar (1999). Running Linux (3rd ed.). O'Reilly. pp. 323–330. ISBN 1-56592-469-X.
  10. ^ Smith, Roderick W. (2003). "Managing Printers". Linux Power Tools. SYBEX. pp. 269–284. ISBN 0-7821-4226-5.
  11. ^ Gray, Peter (August 1997). "Simplified LP configuration". AUUGN: The Journal of AUUG (Australian Unix Systems User Group). 18 (3): 9–11.

Read other articles:

Bupati (berpakaian adat Jawa), asisten residen (di tengah) dan para controleurs Malang di sekitar tahun 1930 Asisten residen adalah pegawai negeri tertinggi di suatu afdeling pada masa penjajahan Belanda. Tiga sampai lima afdeling membentuk karesidenan, yang dikepalai oleh residen, yang juga pimpinan langsung asisten residen. Bupati adalah kepala setempat yang bekerja sama dengan asisten residen, begitupun juga melalui otoritas atas penduduk melalui pengakuan mereka yang tak dapat dihindari. ...

 

Airport in Winnebago County, IL, USA Chicago Rockford International AirportChicago-Rockford terminalIATA: RFDICAO: KRFDFAA LID: RFDWMO: 72543SummaryAirport typePublicOwnerGreater Rockford Airport AuthorityServesRockford, IllinoisChicago metropolitan areaLocationRockford, IllinoisOpened1946; 78 years ago (1946)Hub forUPS AirlinesElevation AMSL742 ft / 226 mCoordinates42°11′43″N 89°05′50″W / 42.19528°N 89.09722°W / 42.19528; -...

 

ري تشارلز (بالإنجليزية: Ray Charles)‏[1][2]  معلومات شخصية اسم الولادة (بالإنجليزية: Raymond Charles Robinson)‏،  و(بالإنجليزية: Ray Charles Robinson)‏[3][1][4][5][6][7][8]  الميلاد 23 سبتمبر 1930(1930-09-23)ألباني الوفاة 10 يونيو 2004 (73 سنة)بيفرلي هيلز كاليفورنيا سبب الوفا�...

British musical project This article is about British musician. For Norwegian jazz fusion band, see The Source (band). Some of this article's listed sources may not be reliable. Please help improve this article by looking for better, more reliable sources. Unreliable citations may be challenged and removed. (May 2020) (Learn how and when to remove this message) The Source was originally an alias for the English songwriting team of Anthony B. Stephens, Arnecia Michelle Harris and John Bellamy....

 

American physicist, inventor, and eugenicist (1910–1989) For other uses, see William Shockley (disambiguation). It has been suggested that Foundation for Research and Education on Eugenics and Dysgenics be merged into this article. (Discuss) Proposed since May 2024. William ShockleyShockley in 1975BornWilliam Bradford Shockley Jr.(1910-02-13)February 13, 1910London, EnglandDiedAugust 12, 1989(1989-08-12) (aged 79)Stanford, California, U.S.NationalityAmericanAlma mater California I...

 

1987 American film directed by Lionel Chetwynd The Hanoi HiltonTheatrical release posterDirected byLionel ChetwyndWritten byLionel ChetwyndProduced byYoram GlobusMenahem GolanStarring Michael Moriarty Jeffrey Jones Paul Le Mat Stephen Davies Lawrence Pressman Aki Aleong Gloria Carlin John Diehl Rick Fitts David Soul CinematographyMark IrwinEdited byPenelope ShawMusic byJimmy WebbDistributed byCannon Film DistributorsRelease date March 27, 1987 (1987-03-27) Running time125 minut...

 烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总...

 

Ивар Широкие Объятья конунг Сконе Рождение VII векСконе, Сконе, Швеция Смерть не ранее 695Финский залив Род Скьёльдунги Отец Хальвдан Храбрый Дети Ауд Богатая Королевство Ивара Широкие Объятья (красная граница) и земли платившие ему дань (фиолетовая граница), согласно...

 

Brass instrument This article is about the modern brass instrument. For the organ stop, see Cornet (organ stop). For other uses, see Cornet (disambiguation). Not to be confused with comet, cornett, cornette, coronet, or kornet. This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (December 2022) (Learn how and when to remove this message) CornetCornet in ...

YekokoraYokokala Caractéristiques Bassin collecteur Congo Cours Confluence Lopori · Coordonnées 1° 18′ 58″ N, 20° 22′ 08″ E Géographie Pays traversés République démocratique du Congo modifier  La Yekokora ou Yokokala est une rivière du Congo-Kinshasa, un sous-affluent du fleuve Congo par la Lulonga-Lopori dont elle est un affluent. Elle sert de limite nord à la réserve de faune de Lomako-Yokokala. Géographie Cette section est vide, insu...

 

35mm SLR camera Nikon F4Nikon F4 with a Battery Pack MB-21 (F4S)OverviewType35mm SLRLensLens mountNikon F-mountFocusingFocusTTL Phase Detection Autofocus (1 zone)Exposure/meteringExposureProgram, shutter priority, aperture priority, manual5 segment Matrix Metering Nikon F4 top view The Nikon F4 is a 35 mm autofocus (AF) single lens reflex (SLR) film camera, introduced in 1988 as the next generation in Nikon's line of F series professional cameras. With industrial design by Giorgetto Giug...

 

PT TEMAS Tbk.SebelumnyaPT Pelayaran Tempuran Emas Tbk.JenisPerseroan terbatasKode emitenIDX: TMASIndustriAngkutan LautDidirikan17 September 1987; 36 tahun lalu (1987-09-17)PendiriHarto Khusumo dan KoentojoKantorpusatJakarta, IndonesiaWilayah operasiIndonesiaTokohkunciFaty Khusumo[1](Direktur Utama)Harto Khusumo[1](Komisaris Utama)JasaPengangkutan dan pengelolaan peti kemasPengelolaan depo peti kemasPengapalanBongkar muat kapalPengawakan kapalPengelolaan pelabuhanPergudang...

Bicameral national legislature of Thailand National Assembly รัฐสภาRatthasapha26th ParliamentSeal of the National AssemblyTypeTypeBicameral HousesSenateHouse of RepresentativesHistoryFounded28 June 1932LeadershipMonarchVajiralongkorn since 13 October 2016 President of the National Assembly(Speaker of the House of Representatives)Wan Muhamad Noor Matha, Prachachart since 5 July 2023 Vice President of the National Assembly(President of the Senate)Vacant since 10 July 2024 Prime ...

 

Jay HernandezLahirJavier Manuel Hernandez, Jr.Tahun aktif1998 — sekarangPenghargaanALMA Award for Outstanding Actor in a Motion Picture2001 Crazy/Beautiful Teen Choice Award for Movie - Choice Scream2005 Hostel Jay Hernandez (lahir 20 Februari 1978) adalah aktor Amerika Serikat. Hernandez lahir sebagai Javier Manuel Hernandez, Jr. di Montebello, Kalifornia. Filmografi Film 2008 Tahun Judul Peran Catatan 2000 Living the Life Kikicho 2001 Crazy/Beautiful Carlos Nuñez Joy Ride Marine 20...

 

Questa voce sull'argomento calciatori boemi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Bohumil MacounNazionalità Boemia Calcio RuoloAllenatore (ex attaccante) CarrieraSquadre di club1 1906-1908 Slavia Praga? (?) Nazionale 1906-1908 Boemia2 (0) Carriera da allenatore 1913 Hajduk Spalato 1 I due numeri indicano le presenze e le reti segnate, per le sole partite di campionato.Il simbo...

Η Gaskraftmaschine του 1876Nikolaus August Otto (14 Juni 1832 – 28 Januari 1891) ialah penemu mesin pembakaran dalam asal Jerman. Sebagai lelaki muda ia mulai percobaan dengan mesin gas dan pada 1864 ikut serta dengan 2 kawan untuk membentuk perusahaannya sendiri. Perusahaan itu dinamai N. A. Otto & Cie., yang merupakan perusahaan pertama yang menghasilkan mesin pembakaran dalam. Perusahaan ini masih ada sampai kini dengan nama Deutz AG. Mesin atmosfer pertamanya selesai pada Mei 18...

 

غروس سبانورت   الموقع كانتون أوري، سويسرا المنطقة أوري  إحداثيات 46°47′12″N 8°31′29″E / 46.786666666667°N 8.5247222222222°E / 46.786666666667; 8.5247222222222   الارتفاع 3,198 متر (10,492 قدم) السلسلة جبال الألب أوري النتوء 616 متر (2,021 قدم) الوصول الأول 1867 قائمة جبال الألب تعديل مصدري - تعدي...

 

Reproductive biofluid of male or hermaphroditic animals Not to be confused with Sperm. For other uses, see Semen (disambiguation). Spermatozoa, in this case human, are a primary component in normal semen, and the agents of fertilization of female ova. Semen, also known as seminal fluid, is a bodily fluid that contains spermatozoa. Spermatozoa are secreted by the male gonads (sexual glands) and other sexual organs of male or hermaphroditic animals and can fertilize the female ovum. In placenta...

2017 European Athletics U23 ChampionshipsTrack events100 mmenwomen200 mmenwomen400 mmenwomen800 mmenwomen1500 mmenwomen5000 mmenwomen10,000 mmenwomen100 m hurdleswomen110 m hurdlesmen400 m hurdlesmenwomen3000 msteeplechasemenwomen4 × 100 m relaymenwomen4 × 400 m relaymenwomenRoad events20 km walkmenwomenField eventsHigh jumpmenwomenPole vaultmenwomenLong jumpmenwomenTriple jumpmenwomenShot putmenwomenDiscus throwmenwomenHammer throwmenwomenJavelin throwmenwomenCombined eventsHeptathlonwome...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Action Medical Research – news · newspapers · books · scholar · JSTOR (June 2024) (Learn how and when to remove this message) Action Medical ResearchFounded1952FounderDuncan GuthrieRegistration no.208701FocusMedical Research into Children’s DiseasesLocat...