11.5 ʹÓôòÓ¡»ú 11.6 ±ê×¼spooler Ö®ÍâµÄÑ¡Ôñ
=============================================================
11.5 ʹÓôòÓ¡»ú ÕâÒ»½Ú½«¸æËßÄãÈçºÎÔÚFreeBSD ÏÂʹÓôòÓ¡»ú¡£ÕâÀïÓзÝʹÓÃÕߵȼ¶ÃüÁîµÄ¸ÅÊö¡£ lpr ´òÓ¡¹¤×÷ lpq ¼ì²é´òÓ¡»ú¶ÓÁÐ ½«¹¤×÷´Ó´òÓ¡»ú¶ÓÁÐÖÐɾ³ý lprm Ò²ÓÐϵͳά»¤Ê¹ÓõÄÃüÁlpc£¬ÓÃÀ´¿ØÖÆ´òÓ¡»ú¼°Æä¶ÓÁС£ÔÚ¹ÜÀí´òÓ¡»úÕâÒ»½ÚÀïÓиüÏêϸµÄ˵Ã÷¡£ lpr£¬lprm ºÍlpq ÕâÈý¸öÃüÁ½ÓÊÕ-P printer-name Õâ¸öÖ¸¶¨ÔÚ/etc/printcap ÎļþÀïÉ趨µÄ´òÓ¡»ú/¶ÓÁеIJÎÊý¡£ÔÊÐíÄã¶Ô²»Í¬µÄ´òÓ¡»ú×öÒªÇó¡¢É¾³ý£¬ÒÔ¼°¼ì²é¹¤×÷¡£Èç¹ûÄãûÓÐʹÓÃ-P ²ÎÊý£¬ÄÇôÕâЩÃüÁʹÓÃPRINTER »·¾³±äÁ¿ËùÖ¸¶¨µÄ´òÓ¡»ú¡£ÈôÄãҲûÓÐPRINTER »·¾³±äÁ¿£¬ÄÇôÕâЩÃüÁîÔò»á¶Ô±ðÃûΪlp µÄ´òÓ¡»úÖ¸¶¨¶¯×÷¡£ ´Ëºó£¬Ä¬ÈÏ´òÓ¡»úÖ¸µÄ¾ÍÊÇÒÔPRINTER »·¾³±äÁ¿É趨µÄ´òÓ¡»ú»òÊǵ±lp »·¾³±äÁ¿²»´æÔÚʱ£¬±ðÃûΪlp µÄ´òÓ¡»ú¡£ 11.5.1 ´òÓ¡¹¤×÷ Òª´òÓ¡Îļþ£¬ÊäÈ룺 % lpr filename ... Õ⽫°ÑËùÓÐÁгöµÄÎļþÒÔĬÈÏ´òÓ¡»ú´òÓ¡¡£Èç¹ûÄãûÓÐÖ¸¶¨ÈκÎÎļþ£¬ÄÇôlpr ½«»á´Ó±ê×¼ÊäÈë¶ÁÈë×ÊÁÏ¡£ÏÂÃæÕâ¸öÀý×Ó½«»á´ò³öһЩÖØÒªµÄϵͳÎļþ£º % lpr /etc/host.conf /etc/hosts.equiv ÈôÒªÖ¸¶¨ÒÔÌض¨µÄ´òÓ¡»úÊä³ö£¬ÊäÈ룺 % lpr -P printer-name filename ... ÏÂÃæÕâ¸öÀý×ӻὫµ±Ç°Ä¿Â¼ÏµÄÎļþÁбí´ÓÃûΪrattan ´òÓ¡»úÊä³ö£º % ls -l | lpr -P rattan ÒòΪlpr ÃüÁîÖ®ºóûÓÐÖ¸¶¨ÈκÎÒ»¸öÎļþ£¬lpr ½«»á´Ó±ê×¼ÊäÈë¶ÁÈë×ÊÁÏÒÔ´òÓ¡³öÀ´£¬¼´ÓÉls -l ÃüÁîËù²úÉúµÄÊä³ö¡£µÚ61 Ò³FreeBSD ʹÓÃÊÖ²á lpr ÃüÁîÓÐÐí¶à²ÎÊýÈç¿ØÖÆÊä³ö¸ñʽ¡¢Ì×ÓÃÎļþת»»¡¢Ò»´Î´òÓ¡³ö¶à·Ý£¬µÈµÈ¡£Çë²Î¿´´òÓ¡²ÎÊýÕâÒ»½ÚÀïÓиüÏêϸµÄ˵Ã÷¡£ 11.5.2 ¼ì²é´òÓ¡¹¤×÷ µ±ÄãʹÓÃlpr ´òӡʱ£¬Ò»ÆðË͵½LPD spooling ϵͳµÄ×ÊÁϳÆΪһ¸ö¡°´òÓ¡¹¤×÷¡±¡£Ã¿Ò»Ì¨´òÓ¡»ú¶¼ÓÐÒ»¸ö´òÓ¡¹¤×÷¶ÓÁУ¬¶øÄãµÄ´òÓ¡¹¤×÷ºÍÆäËüµÄ´òÓ¡¹¤×÷Ò»ÑùÔÚ¶ÓÁÐÀïµÈ´ý´ò Ó¡¡£´òÓ¡»ú»á½«ÏÈ´òÓ¡ÏÈËÍ´ïµÄ¹¤×÷¡£ ÒªÏÔʾĬÈÏ´òÓ¡»úµÄ¶ÓÁУ¬ÊäÈëlpq ¼´¿É¡£ÈôÒªÖ¸¶¨´òÓ¡»ú£¬ÇëÖ¸¶¨-P ²ÎÊý¡£ÀýÈç% lpq -P bamboo Õâ¸öÃüÁî»áÏÔʾ½Ð×öbamboo µÄ´òÓ¡»ú¶ÓÁС£ÕâÀïÓÐÒ»·Ýlpq ÃüÁîµÄÊä³öÀý×Ó£º bamboo is ready and printing Rank Owner Job Files Total Size active kelly 9 /etc/host.conf, /etc/hosts.equiv 88 bytes 2nd kelly 10 (standard input) 1635 bytes 3rd mary 11 ... 78519 bytes ÉÏÃæÏÔʾһ¹²ÓÐÈý¸ö¹¤×÷ÔÚbamboo µÄ¶ÓÁÐÀï¡£µÚÒ»¸ö¹¤×÷ÓÉʹÓÃÕßkelly Ëͳö£¬¡°¹¤×÷´úÂ롱Ϊ9¡£Ã¿Ò»¸ö¹¤×÷¶¼»áÓиöΨһµÄ¹¤×÷´úÂ롣ͨ³£Äã¿ÉÒÔºöÂÔ¹¤×÷´úÂ룬µ«ÊÇÈç¹ûÄã ҪȡÏûij¸ö¹¤×÷ʱ£¬Äã¾Í»áÐèÓÃÖªµÀ¹¤×÷ºÅÂë¡£ÏêÇéÇë²Î¿´É¾³ý¶ÓÁÐÕâÒ»½Ú¡£¹¤×÷ºÅÂë9 Àï°üº¬ÁËÁ½¸öÎļþ¡£ÓÃlpr ËͶà¸öÎļþ½«»á±»ÊÓΪͬһ¸ö¹¤×÷¡£ÕâÊÇÄ¿Ç°Õý ÔÚ´¦ÀíµÄ¹¤×÷(×¢Òâ¡°Rank¡±À¸±êʾµÄactive)£¬¼´´òÓ¡»úÏÖÔÚÓ¦¸Ã¾ÍÔÚ´òÓ¡Õâ¸ö¹¤×÷¡£µÚ¶þ¸ö¹¤×÷µÄ×ÊÁÏÊÇÓÃlpr ´Ó±ê×¼ÊäÈë½ÓÊÕ×ÊÁϵġ£¶øµÚÈý¸ö¹¤×÷ÊÇÓÉʹÓÃÕßmary ËͳöµÄ¡£ÕâÊÇÒ»¸ö½Ï´óµÄ¹¤×÷¡£¶øËýÒª´òÓ¡µÄÎļþÒòΪ̫³¤¶ø·Å²»Ï£¬ËùÒÔlpq ÃüÁîÖ»ÏÔʾÈý¸öµã¡£ lpq ×îÇ°ÃæµÄÊä³öͨ³£¿ÉÒÔ¿´³ö´òÓ¡»úÏÖÔÚÔÚ×öʲô(ÖÁÉÙÊÇLPD ¾õµÃ´òÓ¡»úÏÖÔÚÓ¦¸ÃÊÇÔÚ×öʲô)¡£ lpq ÃüÁî¿ÉÒÔʹÓÃ-l ²ÎÊýÒԵõ½¸üÏêϸµÄÁÐ±í¡£ÕâÀïÓÐÒ»¸ölpq -l µÄÊä³ö·¶Àý£º waiting for bamboo to become ready (offline ?) kelly: 1st [job 009rose] /etc/host.conf 73 bytes /etc/hosts.equiv 15 bytes µÚ62 Ò³FreeBSD ʹÓÃÊÖ²á kelly: 2nd [job 010rose] (standard input) 1635 bytes mary: 3rd [job 011rose] /home/orchid/mary/research/venus/alpha-regio/mapping 78519 bytes 11.5.3 ɾ³ý´òÓ¡¹¤×÷ Èç¹ûÄã¸Ä±äÖ÷Òâ²»Ïë´òÓ¡ÄãµÄ¹¤×÷ÁË£¬Äã¿ÉÒÔÓÃlprm ÃüÁî°ÑËûÃÇ´Ó´òÓ¡¶ÓÁÐÖÐɾ³ý ͨ³£ÄãÒ²¿ÉÒÔÓÃlprm °ÑÒ»¸öÕýÔÚ´¦ÀíµÄ¹¤×÷ɾ³ý£¬²»¹ý¿ÉÄÜ»¹ÊÇ»á´òÓ¡³ö²¿·Ö»òÊÇÈ«²¿µÄÎļþ¡£ Òª´ÓĬÈÏ´òÓ¡»úÀïɾ³ý¹¤×÷£¬Ê×ÏÈ£¬ÓÃlpq ÕÒ³ö¹¤×÷´úÂ룬ȻºóÊäÈ룺 % lprm job-number Èç¹ûÒª´ÓÖ¸¶¨µÄ´òÓ¡»úɾ³ý¹¤×÷£¬ÄÇôÓÃ-P ²ÎÊý¡£ÏÂÁеÄÃüÁî´Ó´òÓ¡»úbamboo µÄ¶ÓÁÐÖÐɾ³ý¹¤×÷ºÅÂëΪ10 µÄ¹¤×÷£º % lprm -P bamboo 10 lprm ÃüÁîÓÐһЩ³£ÓõÄÓ÷¨£º lprm - ½«(ĬÈÏ´òÓ¡»ú)ÀïËùÓÐÊôÓÚÄãµÄ¹¤×÷¶¼É¾³ý¡£ % lprm -P rattan - lprm user ½«(ĬÈÏ´òÓ¡»ú)ÀïËùÓÐÊôÓÚʹÓÃÕßuser µÄ¹¤×÷½Ôɾ³ý¡£Ö»Óг¬¼¶Ê¹ÓÃÕß¿ÉÒÔɾ³ýÆäËüÈ˵Ť×÷£¬ÄãÖ»ÄÜɾ³ýÄã×Ô¼ºµÄ¹¤×÷¡£ lprm Èô²»Ö¸¶¨¹¤×÷ºÅÂ롢ʹÓÃÕßÃû³Æ»òÊÇ- £¬lprm ½«É¾³ýĿǰĬÈÏ´òÓ¡»úÕýÔÚ´¦ÀíµÄ¹¤×÷£¬µ«Ç°ÌáÊÇÕâ¸ö¹¤×÷±ØÐèÊÇÊôÓÚÄãµÄ¡£³¬¼¶Ê¹ÓÃÕß¿ÉÒÔɾ³ýÈκÎÄ¿Ç°ÕýÔÚ´¦ÀíµÄ¹¤×÷¡£ ÈôʹÓÃ-P ²ÎÊýÅäºÏÉÏÊöµÄ³£ÓÃÓ÷¨£¬ÔòÉÏÊöµÄ¶¯×÷½«¶ÔÖ¸¶¨µÄ´òÓ¡»ú¶¯×÷¶ø²»ÊǶÔĬÈÏ´òÓ¡»ú¡£ÏÂÁеÄÃüÁ»áɾ³ýĿǰʹÓÃÕßÔÚ´òÓ¡»úrattan ¶ÓÁÐÖеÄËùÓй¤×÷£º ×¢Òâ: Èç¹ûÄãʹÓõÄÊÇÍøÂç´òÓ¡»ú£¬lprm ½«Ö»ÔÊÐíÄã´ÓÊä³ö¹¤×÷µÄ»úÆ÷ɾ³ý¸Ã¹¤×÷¡£ µÚ63 Ò³FreeBSD ʹÓÃÊÖ²á ÏÂÃæÕâЩÃüÁî¿ÉÒÔ˵Ã÷Õâ¸ö¸ÅÄ % lpr -P rattan myfile % rlogin orchid % lpq -P rattan Rank Owner Job Files Total Size active seeyan 12 ... 49123 bytes 2nd kelly 13 myfile 12 bytes % lprm -P rattan 13 rose: Permission denied % logout % lprm -P rattan 13 dfA013rose dequeued cfA013rose dequeued 11.5.4 ÔÚ´¿ÎÄ×ÖÖ®Í⣺´òÓ¡²ÎÊý lpr ÃüÁîÌṩ¿ØÖƸñʽÊä³ö¡¢×ª»»Í¼Ðμ°ÆäËüÎļþ¸ñʽ¡¢Ò»´Î´ò³ö¶à·Ý¡¢¹¤×÷´¦Àí·½Ê½ µÈ²ÎÊý¡£ÕâÒ»½Ú½«Ò»Ò»½éÉÜ¡£ 11.5.4.1 ¸ñʽÊä³öÓëת»»²ÎÊý ÏÂÁеÄlpr ÃüÁî¿ØÖÆÎļþÊä³öµÄ¸ñʽ¡£Èç¹ûÄãµÄ´òÓ¡¹¤×÷ÀïûÓд¿ÎÄ×Ö»òÊÇÄãÏ£Íû´¿ÎÄ×Öͨ¹ýlpr ´¦ÀíºóÒÔÌض¨µÄ¸ñʽÊä³öʱ£¬Äã¿ÉÒÔʹÓÃÕâЩ²ÎÊý¡£ ¾ÙÀýÀ´Ëµ£¬ÏÂÃæµÄÃüÁî´Ó½Ð×öbamboo µÄ´òÓ¡»ú½«DVI Îļþ(ÓÉTeX ÅÅ°æϵͳ²úÉú) fish-report.dvi ´ò³ö£º % lpr -P bamboo -d fish-report.dvi ÕâЩ²ÎÊý½«Ì×ÓÃÕâ¸ö¹¤×÷ÀïµÄÿ¸öÎļþ£¬ËùÒÔÄã²»ÄÜ°ÑDVI ºÍditroff ÎļþÔÚͬһ¸ö¹¤×÷ÀïÒ»Æð´¦Àí£¬¶øÒª·ÖÁ½´Î¹¤×÷Óò»Í¬µÄת»»²ÎÊý¡£×¢Òâ: ÕâЩ²ÎÊý³ýÁË-p ºÍ-T ÐèҪΪָ¶¨µÄ´òÓ¡»ú°²×°×ª»»µÄ¹ýÂ˳ÌÐòÍ⣬ÆäËüµÄ¶¼²»Ó᣾ÙÀýÀ´Ëµ£¬²ÎÊý-d ÐèÒª°²×°DVI ת»»¹ýÂ˳ÌÐò¡£×ª»»ÓõĹýÂ˳ÌÐòÕâÒ»½ÚÓнÏÏêϸµÄ˵Ã÷¡£ c µÚ64 Ò³d f g i number l n p T title t v ÏÂÃæÊÇÒ»¸öÒÔĬÈÏ´òÓ¡»ú´òÓ¡¸ñʽ»¯¹ýµÄls manual page µÄÀý×Ó£º zcat ÃüÁls ÔʼÊý¾Ý½âѹËõ²¢´«Ë͸øtroff ÃüÁ½«¸ÃÊý¾Ý¸ñʽ»¯ºóÒÔGNU troff ¸ñʽÊä³ö¸ølpr Ë͸øLPD spooler ´¦Àí¡£ÒòΪÎÒÃÇÔÚʹÓÃlpr ÃüÁîʱʹÓÃÁË-t ²ÎÊý£¬ËùÒÔspooler ÔÚ´òӡʱ»á°ÑGNU troff ת»»³ÉĬÈÏ´òÓ¡»úËùÄÜÁ˽âµÄ¸ñʽ¡£ ½«Êä³öËõ½ønumber ¸ö×Ö·û¡£Èç¹ûÄãÊ¡ÂÔnumber£¬ÔòËõ½ø8 ¸ö×Ö·û¡£Õâ¸ö²ÎÊýÖ»ÓÐÔÚijЩת»»ÓõĹýÂ˳ÌÐòÉÏÓÐЧ¡£ Ô·â²»¶¯µÄ´ò³öÎÄ×ÖÊý¾Ý£¬°üÀ¨¿ØÖÆ×Ö·û¡£´òÓ¡ditroff (device independent troff) Êý¾Ý¡£ÔÚ´òӡ֮ǰÒÔpr ¸ñʽ»¯Êä³ö¡£Çë²Î¼ûpr ÒÔÈ¡µÃ¸ü¶àµÄÐÅÏ¢¡£ ÒÔtitle È¡´úpr header ÖеÄÎļþÃû¡£Õâ¸ö²ÎÊýÖ»ÓÐÔÚÅäºÏ-p ²ÎÊýʹÓÃʱ²ÅÓÐЧ¡£ ´òÓ¡troff Êý¾Ý¡£ ´òÓ¡raster Êý¾Ý¡£ % zcat /usr/share/man/man1/ls.1.gz | troff -t -man | lpr -t ´òÓ¡cifplot Îļþ¡£ ´òÓ¡DVI Îļþ¡£ ´òÓ¡FORTRAN Îı¾Îļþ ´òÓ¡plot Êý¾Ý¡£ ×¢ÊÍ: Çë²»ÒªÔÚ-i ºÍÊý×ÖÖ®¼ä¼ÓÉÏ¿Õ°× FreeBSD ʹÓÃÊÖ²á µÚ65 Ò³11.5.4.2 ¹¤×÷´¦Àí·½Ê½²ÎÊý # copies m s r 11.5.4.3 Header Page ²ÎÊý ÕâЩ²ÎÊý¾ÍûÓÐ×÷ÓÃÁË¡£Çë²Î¼ûHeader Pages ÕâÒ»½ÚÒÔÁ˽âÈçºÎÉ趨header pages¡£ 1. C text ½«Í¬Ò»¹¤×÷ÀïµÄÿ¸öÎļþ¶¼´ò³öcopies ·Ý¡£ÏµÍ³¹ÜÀíÔ±¿ÉÒÔ½«Õâ¸ö²ÎÊý¹Ø±Õ£¬ÒÔ¼õµÍ´òÓ¡»úµÄÕÏ°²¢¹ÄÀøʹÓø´Ó¡»ú¡£Çë²Î¼ûÏÞÖÆ´òÓ¡¶à·ÝÕâÒ»½ÚµÄ˵Ã÷¡£ Õâ¸öÀý×Ó½«»á´ÓĬÈϵĴòÓ¡»ú´ò³öÈý·Ýparser.c£¬È»ºó´ò³öÈý·Ýparser.h£º% lpr -#3 parser.c parser.h Íê³É´òÓ¡¹¤×÷ºó£¬±ã֪ͨʹÓÃÕß¡£ÈôʹÓÃÕâ¸ö²ÎÊý£¬µ±´òÓ¡¹¤×÷Íê³Éºó£¬LPD ϵͳ½«»áдПøÄã¡£ÔÚÕâ·âÐÅÖн«»á¸æËßÄãÄãµÄ¹¤×÷ÊÇ·ñ³É¹¦µØ´ò³ö»òÊÇÓдíÎóÒÔ¼° (ͨ³£»á)¸æËßÄã´íÎóµÄÔÒò¡£²»Òª½«Òª´òÓ¡µÄÎļþ¿½±´µ½spooling Ŀ¼£¬¶øÖ»ÒªÒÔsymbolic links µÄ·½Ê½È¡´ú¡£ Èç¹ûÄãÒª´òÓ¡´óµÄÎļþ£¬Äã¿É¿¼ÂÇÓÃÕâ¸ö²ÎÊý¡£Õâ¿ÉÒÔ½ÚÊ¡Äãspooling Ŀ¼µÄ¿Õ¼ä(·ñÔòspooling Ŀ¼ËùÔÚµÄÎļþϵͳ¿ÉÄÜ»á¿Õ¼ä²»×ã)¡£Í¬Ê±ËûÒ²¿ÉÒÔÊ¡ÏÂLPD ½«Îļþ ¿½±´µ½spooling Ŀ¼ËùÐèµÄʱ¼ä¡£Õâô×öÓÐÒ»¸öȱµã¾ÍÊǵ±´òÓ¡»¹Ã»½áÊøʱ£¬Äã²»ÄÜÐ޸Ļòɾ³ý´òÓ¡ÖеÄÎļþ£¬ÒòΪLPD ÔÚ´òӡʱ»¹»áÓõ½ÔʼµÄÎļþ¡£ËùÒÔ²ÎÊý-s Ö»ÓÐÔÚ±¾»úÉÏ´òӡʱ²ÅÓÐÓᣵ±ÄãµÄÎļþÒѾ¿½±´µ½spooling Ŀ¼ʱ£¬»òÊÇÓÃ-s ²ÎÊýÇÒ´òÓ¡Íê³Éʱ£¬¾Í½«Ô±¾µÄÎļþɾ³ý¡£ÇëСÐÄʹÓÃÕâ¸ö²ÎÊý£¡ ÓÐһЩ²ÎÊýÊÇÉ趨lpr ´òÓ¡ÔÚheader pages ÉϵÄÎÄ×Ö¡£Èç¹û´òÓ¡header pages µÄ»°£¬ÄÇô½«header page ÉϵĻúÆ÷Ãû³ÆÒÔtext È¡´ú¡£»úÆ÷Ãû³Æͨ³£ÊÇ´òÓ¡Ëͳö¹¤×÷µÄ»úÆ÷Ãû³Æ¡£ 2. J text FreeBSD ʹÓÃÊÖ²á ÏÂÁеIJÎÊý½«»áÈÃlpr ¸æËßLPD ÒÔÌرðµÄ·½Ê½´¦Àí¹¤×÷£º µÚ66 Ò³FreeBSD ʹÓÃÊÖ²á ½«header ÉϵŤ×÷Ãû³ÆÒÔtext È¡´ú¡£¹¤×÷Ãû³Æͨ³£ÊÇÒ»·Ý´òÓ¡¹¤×÷ÀïµÄµÚÒ»¸öÎļþÃû³Æ£¬Èç¹ûÄãÊÇ´Ó±ê×¼ÊäÈë´òÓ¡Êý¾ÝµÄ»°£¬ÄÇô½«»áÊÇstdin¡£ 3. h ²»Òª´òÓ¡header page¡£ ×¢ÊÍ: ÔÚijЩ»úÆ÷ÉÏ£¬ÓÉÓÚheader pages ²úÉúµÄ·½Ê½²»Í¬£¬ Õâ¸öÑ¡Ïî¿ÉÄÜ»áÎÞЧ¡£Çë²Î¼ûHeader Pages ÕâÒ»½ÚÀï¸üÏêϸµÄ˵Ã÷¡£ 11.5.5 ¹ÜÀí´òÓ¡»ú ×÷Ϊ´òÓ¡»ú¹ÜÀíÔ±£¬Äã±ØÐè°²×°¡¢É趨ÒÔ¼°²âÊÔËüÃÇ¡£Äã¿ÉÒÔÓÃlpc Õâ¸öÃüÁ 1. ÈôòÓ¡»ú¿ªÊ¼¹¤×÷»òÍ£Ö¹¹¤×÷¡£ 2. ¿ªÆô»ò¹Ø±ÕËûÃǵĶÓÁС£ 3. ÖØа²ÅŶÓÁÐÀ﹤×÷µÄ˳Ðò¡£ ÎÒÃǵÃÏÈÖªµÀµÄÒ»¸ö¸ÅÄîÊÇ£ºÈç¹ûÒ»¸ö´òÓ¡»úÒѾֹͣ¹¤×÷ÁË£¬Ëû½«²»»á½«¶ÓÁÐÀïµÄÈκζ«Î÷´ò³ö¡£Ê¹ÓÃÕßÈÔÈ»¿ÉÒÔ½«¹¤×÷Ë͹ýÀ´£¬µ«ÊÇÕâЩ¹¤×÷½«»áÔÚ¶ÓÁÐÀïµÈ´ýÖ±µ½´òÓ¡»ú¿ª ʼ¹¤×÷»òÊǶÓÁб»Çå¿ÕÁË¡£ Èç¹û¶ÓÁб»¹Ø±ÕÁË£¬ÄÇôûÓÐʹÓÃÕß(³ýÁËroot Ö®Íâ)¿ÉÒÔ½«¹¤×÷Ë͸ø´òÓ¡»ú¡£Ö»ÓÐÒѾ¿ªÆô¶ÓÁеĴòÓ¡»ú¿ÉÒÔ½ÓÊÕÆäËüÈ˽«¹¤×÷Ë͹ýÀ´¡£Ò»¸ö´òÓ¡»ú¿ÉÒÔΪһ¸öÒѾ¹Ø±ÕµÄ¶ÓÁÐ ¿ªÊ¼¹¤×÷¡£ÔÚÕâ¸öÇé¿öÏ£¬Ô±¾´æÔÚ¶ÓÁÐÖеŤ×÷½«»áÒ»Ò»µÄ±»´òÓ¡Ö±µ½Ã»Óй¤×÷Ϊֹ¡£Í¨³££¬ÓµÓÐroot ȨÏÞµÄʹÓÃÕ߲ſÉÒÔÓÃlpc ÏÂÃüÁî¡£Ò»°ãµÄʹÓÃÕßÖ»ÄÜÓÃlpc ÃüÁîÀ´ ²éѯ´òÓ¡»ú¹¤×÷ÒÔ¼°ÖØÐÂÆô¶¯µ±µôµÄ´òÓ¡»ú¡£ ÒÔÏÂÊÇÒ»·Ýlpc µÄÃüÁîÁÐ±í¡£´ó²¿·ÝµÄÃüÁÐèÒªÖ¸¶¨printer-name ÒÔÖ¸¶¨Òª¶ÔÄÄһ̨´òÓ¡»úÏÂÃüÁî¡£printer-name Ò²¿ÉÒÔÓÃall ±íʾËùÓÐÅÅÔÚ/etc/printcap ÀïµÄ´òÓ¡»ú¡£ abort printer-name È¡ÏûÄ¿Ç°µÄ¹¤×÷£¬Í¬Ê±Ò²Í£Ö¹´òÓ¡»ú¹¤×÷¡£Èç¹û¶ÓÁб»¹Ø±Õ£¬Ê¹ÓÃÕßÈÔÈ»¿ÉÒÔË͹¤×÷¸ø´òÓ¡»ú¡£ clean printer-name ½«´òÓ¡»úspooling Ŀ¼ÖеľÉÎļþɾ³ý¡£ÓÐʱºòLPD ¿ÉÄÜûÓаѴòÓ¡ÍêµÄ¹¤×÷´Óspooling Ŀ¼ÖÐɾ³ý£¬ÓÈÆäÊǵ±´òÓ¡µÄ¹¤×÷·¢Éú´íÎóʱ»òÊÇÓÐÆäËüÃüÁÆäÖÐֹʱ¡£ µÚ67 Ò³FreeBSD ʹÓÃÊÖ²á Õâ¸öÃüÁ»áÕÒ³öÕâЩ²»¸Ã´æÔÚÓÚspooling Ŀ¼ÖеÄÎļþ²¢½«ËûÃÇɾ³ýdisable printer-name ¹Ø±Õ¶ÓÁÐÒÔÍ£Ö¹½ÓÊÕй¤×÷¡£Èç¹û´òÓ¡»ú²¢Î´Í£Ö¹¹¤×÷£¬ÄÇô¶ÓÁÐÖÐÊ£ÓàµÄ¹¤×÷½«»á¼ÌÐø´òÓ¡Ö±µ½¶ÓÁÐÖÐûÓй¤×÷Ϊֹ¡£¹Ø±Õ¶ÓÁкó£¬root ÈÔÈ»¿ÉÒÔ¼ÌÐøË͹¤×÷¸ø´òÓ¡»ú¡£ Õâ¸öÃüÁîÔÚÄã²âÊÔһ̨дòÓ¡»ú»òÊÇеĹýÂ˳ÌÐòʱÌرðÓÐÓãºÄã¿ÉÒÔ½«¶ÓÁйØÆðÀ´È»ºóÒÔroot ²âÊÔ´òÓ¡µÄ¹¤×÷¡£ÆäËüʹÓÃÕßÔòÎÞ·¨½«¹¤×÷Ë͹ýÀ´£¬³ý·ÇÄã²âÊÔÍê±Ïºó½«¶Ó ÁÐÒÔenable ÃüÁî´ò¿ª¡£ down printer-name message Õâ¸öÃüÁîµÈÓÚÊÇdisable ºóÔÙ½Ó×Åstop ÃüÁî¡£ÆäÖÐmessage Êǵ±ÓÐʹÓÃÕßÒÔlpq ¼ì²é ´òÓ¡»ú¶ÓÁлòÊÇÒÔlpc status ÃüÁî¼ì²é´òÓ¡»ú״̬ʱËùÏÔʾµÄÐÅÏ¢¡£ enable printer-name ½«´òÓ¡»ú¶ÓÁдò¿ª¡£ÕâÑùʹÓÃÕ߾ͿÉÒÔ½«¹¤×÷Ë͸ø´òÓ¡»ú£¬µ«ÊÇÖ»ÓÐÔÚ´òÓ¡»úÒѾ¿ªÊ¼ ¹¤×÷ºó£¬¶ÓÁÐÀïµÄ¹¤×÷²Å»á±»´ò³öÀ´¡£ help command-name ½«command-name ÃüÁîµÄ˵Ã÷´ò³ö¡£Èç¹ûûÓÐÖ¸¶¨command-name£¬ÄÇô½«»á´ò³öËùÓÐ¿É ÓõÄÃüÁî¡£ restart printer-name ÖØÐÂÆô¶¯´òÓ¡»ú¡£Èç¹ûÒòΪijЩÇé¿öʹµÃLPD µ±µôÁË£¬Ò»°ãµÄʹÓÃÕß¿ÉÒÔÓÃÕâ¸öÃüÁîÈôòÓ¡»úÖØпªÊ¼¹¤×÷¡£µ«ÊÇËûÃÇÎÞ·¨ÓÃÕâ¸öÃüÁîÈÃÓÉstop »òdown ÃüÁîÍ£Ö¹µÄ´òÓ¡»ú¿ª ʼ¹¤×÷¡£restart ÃüÁîµÈÓÚabort ÔÙ½Ó×Åstart ÃüÁî¡£ start printer-name ÈôòÓ¡»ú¿ªÊ¼¹¤×÷¡£´òÓ¡»ú»á½«¶ÓÁÐÀïµÄ¹¤×÷´ò³ö¡£stop printer-name Í£Ö¹´òÓ¡»ú¹¤×÷¡£´òÓ¡»ú½«»áÏÈÍê³ÉÄ¿Ç°µÄ¹¤×÷È»ºóÍ£Ö¹´òÓ¡¶ÓÁÐÖеÄÈκι¤×÷¡£´òÓ¡»úÍ£Ö¹¹¤×÷ºó£¬Ê¹ÓÃÕßÈÔÈ»¿ÉÒ԰ѹ¤×÷Ë͸øÒ»¸öδ¹Ø±ÕµÄ¶ÓÁÐÖС£ topq printer-name job-or-username µÚ68 Ò³FreeBSD ʹÓÃÊÖ²á ½«´òÓ¡»úprinter-name ¶ÓÁÐÖй¤×÷´úºÅΪjob »òÊÇÊôÓÚʹÓÃÕßusername µÄ¹¤×÷ÒƵ½¶ÓÁеÄ×îÇ°Ãæ¡£ÔÚÕâ¸öÃüÁîÀÄã²»¿ÉÒÔ½«all ÌîÔÚprinter-name ÉÏÖ¸¶¨ËùÓеĴòÓ¡»ú¡£ up printer-name ÕâÊǺÍdown ÃüÁîÏà¶ÔµÄÖ¸Áî¡£µÈÓÚÊÇstart ºóÔÙ½Ó×Åenable ÃüÁî¡£ lpc ÄÜÒÔ²ÎÊýµÄ·½Ê½½ÓÊÕÉÏÊöµÄÃüÁî¡£Èç¹ûÄã²»ÊäÈëÈκÎÃüÁlpc ½«»á½øÈ뽻̸ģʽ£¬ÔÚÕâÀïÄã¿ÉÒÔÒ»Ö±ÊäÈëÃüÁîÖ±µ½ÄãÒÔexit ÃüÁî¡¢quit ÃüÁî»òÊÇÊäÈëÎļþ½áβ×Ö·ûΪֹ¡£ 11.6 ±ê×¼spooler Ö®ÍâµÄÑ¡Ôñ Èç¹ûÄã¶ÁÍêÁËÕâ·ÝÎļþ£¬ÏÖÔÚÄãÓ¦¸ÃÒѾ³¹µ×Á˽âFreeBSD ÌṩµÄLPD spooling ϵͳ¡£ ²»¹ýÄã¿ÉÄܾõµÃÕâ¸öϵͳÓÐЩȱµã£¬Òò´ËÄã¿ÉÄÜ»áÏëµ½£º¡°³ý´ËÖ®Í⻹ÓÐÄÄЩspooling ϵͳ(¿ÉÒÔÅäºÏFreeBSD ʹÓÃ)£¿¡± ²»ÐÒµÄÊÇ£¬Ö»ÓÐÁ½ÖÖÑ¡Ôñ¡£ËüÃÇ·Ö±ðÊÇ£º LPRng LPRng Ö¸µÄÊÇ¡°ÏÂÒ»´úµÄLPR¡± ¡£LPRng Êǽ«PLP ÍêÈ«ÖØд¡£Patrick Powell ºÍJustin Mason (PLP µÄÖ÷Òª¸ºÔðÈË)Ò»ÆðºÏ×÷LPRng¡£LPRng µÄÍøÕ¾ÊÇftp://dickory.sdsu.edu/pub/LPRng/¡£PLP, the Portable Line Printer Spooler System PLP ÊÇÒÔÓÉPatrick Powell Ëù·¢Õ¹µÄÈí¼þΪ»ù´¡£¬ÏÖÔÚÓÉÍøÂçÉϵÄһȺÈ˹²Í¬Î¬»¤·¢Õ¹¡£Äã ¿ÉÒÔÔÚ£¨ftp://ftp.iona.ie/pub/plp/£© Õâ¸öÍøվȡµÃÕâ¸öÈí¼þ¡£ËüºÍBSD LPD ºÜÏàËÆ£¬²»¹ý¼Ó Ç¿ÁËһЩ¹¦ÄÜ£¬°üÀ¨£º 1. ¸üºÃµÄÍøÂçÖ§³Ö£¬°üÀ¨ÄÚ½¨Ò»ÍøÂç´òÓ¡»úÖ§³Ö¡¢ÒÔNIS¹ÜÀíµÄprintcapsÒÔ¼°ÓÃNFS mount µÄspooling Ŀ¼¡£ 2. ³ÉÊìµÄ¶ÓÁйÜÀí¡£ÔÊÐí¶ą̀´òÓ¡»úʹÓÃͬһ¸ö¶ÓÁС¢ÔÚ¶ÓÁÐÖ®¼ä´«Ë͹¤×÷»òÊǽ«¶ÓÁÐ ÖØд«¸øÆäËü´òÓ¡»ú¡£ 3. Ô¶³Ì¿ØÖÆ´òÓ¡»ú 4. ¹¤×÷ÓÅÏÈȨÉèÖà 5. ½Ï¸´Ôӵı£Ãܼ°·ÃÎÊÉèÖà |