10.4. ¥×¥ê¥ó¥¿ÀßÄê¾åµéÊÔ

警告FreeBSD 8.0 ¤«¤é¡¢¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É̾¤¬¡¢ /dev/ttyuN ¤«¤é /dev/ttydN ¤Ø¤ÈÊѹ¹¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ FreeBSD 7.X ¥æ¡¼¥¶¤Ï¡¢ ¤³¤ÎÊѹ¹¤òÍý²ò¤·¤¿¾å¤Ç°Ê²¼¤Îʸ½ñ¤òÆɤó¤Ç¤¯¤À¤µ¤¤¡£

¤³¤ÎÀá¤Ç¤Ï¡¢Æüì¤Ê·Á¼°¤Î¥Õ¥¡¥¤¥ë¤ò°õ»ú¤¹¤ë¤¿¤á¤Î¥Õ¥£¥ë¥¿¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¡¢¥Í¥Ã¥È¥ï¡¼¥¯±Û¤·¤Î¥×¥ê¥ó¥¿¤Ø¤Î°õ»ú¡¢¤½¤·¤Æ¡¢ ¥×¥ê¥ó¥¿»ÈÍѤÎÀ©¸Â¤ä²Ý¶â¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£

10.4.1. ¥Õ¥£¥ë¥¿

LPD ¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡¢¥­¥å¡¼¡¢¥¢¥¯¥»¥¹À©¸æ¤Ê¤É¤Î °õºþ¤Ë¤«¤«¤ï¤ë¤µ¤Þ¤¶¤Þ¤ÊÅÀ¤ò°·¤¤¤Þ¤¹¤¬¡¢ ¼ÂºÝ¤Îºî¶È¤Î¤Û¤È¤ó¤É¤Ï ¥Õ¥£¥ë¥¿¤Ë¤è¤Ã¤Æ¤ª¤³¤Ê¤ï¤ì¤Æ¤¤¤Þ¤¹¡£ ¥Õ¥£¥ë¥¿¤Ï¡¢¥×¥ê¥ó¥¿¤ÈÄÌ¿®¤·¡¢ ¥×¥ê¥ó¥¿¤Î¥Ç¥Ð¥¤¥¹°Í¸À­¤äÆüì¤ÊÍ×µá¤ò°·¤¦¥×¥í¥°¥é¥à¤Ç¤¹¡£ ´Êñ¤Ê¥×¥ê¥ó¥¿ÀßÄê¤Ç¤Ï¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¤¿¤á¤Î¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤·¤¿¡£ ¤³¤Î¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ï¡¢ ¤Û¤È¤ó¤É¤Î¥×¥ê¥ó¥¿¤Çµ¡Ç½¤¹¤ë¶Ë¤á¤Æñ½ã¤Ê¤â¤Î¤Ç¤·¤¿ (¡Ö ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¥¤¥ó¥¹¥È¡¼¥ë¡×¤ò»²¾È)¡£

¤·¤«¤·¤Ê¤¬¤é¡¢·Á¼°ÊÑ´¹¤ä¥×¥ê¥ó¥¿²Ý¶â¡¢ÆÃÄê¤Î¥×¥ê¥ó¥¿¤ÎÊÊ¡¢ ¤Ê¤É ¤ò¤¦¤Þ¤¯ÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢ ¥Õ¥£¥ë¥¿¤¬¤É¤Î¤è¤¦¤Ëµ¡Ç½¤¹¤ë¤«¤È¤¤¤¦ ¤³¤È¤òÍý²ò¤·¤Æ¤ª¤¯¤Ù¤­¤Ç¤¹¡£¤³¤ì¤é¤Î¦Ì̤ò°·¤¦¤³¤È¤Ï¡¢ ºÇ½ªÅª¤Ë¤Ï¡¢¥Õ¥£¥ë¥¿¤ÎÀÕǤ¤Ç¤¢¤ë¤«¤é¤Ç¤¹¡£ ¤½¤·¤Æ¡¢¤³¤ì¤Ï°­¤¤¾ðÊó¤Ç¤¹¤¬¡¢¤Û¤È¤ó¤É¤Î¾ì¹ç¤Ë¤ª¤¤¤Æ¡¢ ¤¢¤Ê¤¿¼«¿È¤¬ ¥Õ¥£¥ë¥¿¤ò¶¡µë¤¹¤ëɬÍפ¬¤¢¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£¤Þ¤¿ÅÔ¹ç¤Î¤è¤¤¤³¤È¤Ë¤Ï¡¢ ¤¿¤¯¤µ¤ó¤Î¥Õ¥£¥ë¥¿¤¬°ìÈÌŪ¤ËÍøÍѤǤ­¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¤â¤·¥Õ¥£¥ë¥¿¤¬¤Ê¤«¤Ã¤¿¤È¤·¤Æ¤â¡¢ ÉáÄ̤ϥե£¥ë¥¿¤òºî¤ë¤Î¤Ï´Êñ¤Ç¤¹¡£

FreeBSD ¤Ë¤â¡¢¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤ò°õ»ú¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤ë /usr/libexec/lpr/lpf ¤È¤¤¤¦¥Õ¥£¥ë¥¿¤¬ 1 ¤ÄÉÕ¤¤¤Æ¤¤¤Þ¤¹ (¤³¤Î¥Õ¥£¥ë¥¿¤Ï¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤ä¥¿¥Ö¤ò°·¤¤¤Þ¤¹¡£ ¤Þ¤¿¡¢²Ý¶â¤ò¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤¬¡¢ ¤Ç¤­¤ë¤³¤È¤Ï¤³¤ì¤À¤±¤·¤«¤¢¤ê¤Þ¤»¤ó)¡£ ¤¤¤¯¤Ä¤«¤Î¥Õ¥£¥ë¥¿¤È¥Õ¥£¥ë¥¿¤Î¹½À®Í×ÁÇ¤Ï FreeBSD Ports Collection ¤Ë¤â¤¢¤ê¤Þ¤¹¡£

¤³¤ÎÀá¤Ç½Ò¤Ù¤ë¤³¤È¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£

注意: °Ê²¼¤Ç½Ò¤Ù¤é¤ì¤Æ¤¤¤ë¤µ¤Þ¤¶¤Þ¤Ê¥¹¥¯¥ê¥×¥È¤Ï¡¢/usr/share/examples/printing ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ê¤Þ¤¹¡£

10.4.1.1. ¥Õ¥£¥ë¥¿¤Ï¤É¤Î¤è¤¦¤Ëµ¡Ç½¤·¤Æ¤¤¤ë¤«

´û¤Ë¸ÀµÚ¤·¤¿¤è¤¦¤Ë¡¢¥Õ¥£¥ë¥¿¤È¤Ï¡¢¥×¥ê¥ó¥¿¤Ë¥Ç¡¼¥¿¤òÁ÷¤ëºÝ¤Ë¡¢ ¥Ç¥Ð¥¤¥¹¤Ë°Í¸¤·¤¿Éôʬ¤ò¼è¤ê°·¤¦¤¿¤á¤Ë LPD ¤Ë¤è¤Ã¤Æµ¯Æ°¤µ¤ì¤ë¼Â¹Ô¥×¥í¥°¥é¥à¤Ç¤¹¡£

LPD ¤¬¥¸¥ç¥ÖÃæ¤Î¥Õ¥¡¥¤¥ë¤ò°õ»ú¤·¤è¤¦¤È¤¹¤ë¤È¤­¡¢ LPD ¤Ï¥Õ¥£¥ë¥¿¥×¥í¥°¥é¥à¤òµ¯Æ°¤·¤Þ¤¹¡£¤³¤Î¤È¤­¡¢ ¥Õ¥£¥ë¥¿¤Îɸ½àÆþÎϤò°õ»ú¤¹¤ë¥Õ¥¡¥¤¥ë¤Ë¡¢ ɸ½à½ÐÎϤò¥×¥ê¥ó¥¿¤Ë¡¢¤½¤·¤Æ¡¢É¸½à¥¨¥é¡¼½ÐÎϤò ¥¨¥é¡¼¥í¥°¥Õ¥¡¥¤¥ë (/etc/printcap Æâ¤Î lf ¹àÌܤǻØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¡¢ »ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤È¤·¤Æ /dev/console) ¤Ë¥»¥Ã¥È¤·¤Þ¤¹¡£

LPD ¤¬µ¯Æ°¤¹¤ë¥Õ¥£¥ë¥¿¤È¡¢¤½¤Î°ú¿ô¤¬²¿¤Ç¤¢¤ë¤«¤Ï¡¢ /etc/printcap ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤȡ¢¥¸¥ç¥Ö¤Îµ¯Æ°»þ¤Ë¥æ¡¼¥¶¤¬»ØÄꤷ¤¿ lpr(1) ¥³¥Þ¥ó¥É¤Î°ú¿ô¤Ë°Í¸¤·¤Æ¤¤¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¥æ¡¼¥¶¤¬ lpr -t ¤ÈÆþÎϤ·¤¿¾ì¹ç¤Ï¡¢ LPD ¤Ï½ÐÎÏÀè¤Î¥×¥ê¥ó¥¿ÍѤΠtf ¹àÌܤǻØÄꤵ¤ì¤Æ¤¤¤ë troff ÍѤΥե£¥ë¥¿¤òµ¯Æ°¤µ¤»¤ë¤Ç¤·¤ç¤¦¡£ ¥æ¡¼¥¶¤¬¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î°õ»ú¤ò»Ø¼¨¤·¤¿¤È¤­¤Ï¡¢ if ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥£¥ë¥¿¤¬µ¯Æ°¤µ¤ì¤ë¤Ç¤·¤ç¤¦ (¤³¤Î¤³¤È¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç¤Ë¤¢¤Æ¤Ï¤Þ¤ê¤Þ¤¹¡£ ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö ½ÐÎÏ¥Õ¥£¥ë¥¿¡×¤ò¤´Í÷¤¯¤À¤µ¤¤)¡£

/etc/printcap ¤Ç»ØÄê²Äǽ¤Ê¥Õ¥£¥ë¥¿¤Ï¼¡¤Î3¼ïÎब¤¢¤ê¤Þ¤¹¡£

  • ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ (LPD ¤Î¥É¥­¥å¥á¥ó¥È¤Ç¤Ïʶ¤é¤ï¤·¤¤¤³¤È¤Ë ÆþÎÏ¥Õ¥£¥ë¥¿¤È¸Æ¤ó¤Ç¤¤¤Þ¤¹¤¬) ¤Ï°ìÈ̤Υƥ­¥¹¥È¤Î°õ»ú¤ò°·¤¤¤Þ¤¹¡£¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥£¥ë¥¿¤È ¹Í¤¨¤Æ¤¯¤À¤µ¤¤¡£LPD ¤Ç¤Ï¡¢¤¹¤Ù¤Æ¤Î¥×¥ê¥ó¥¿¤ËÂФ·¤Æ¡¢ ¥Ç¥Õ¥©¥ë¥È¤Ç¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤¬°õ»ú¤Ç¤­¤ë¤³¤È¤ò´üÂÔ¤·¤Æ¤¤¤Þ¤¹¡£ ¤µ¤é¤Ë¡¢¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤ä¥¿¥Ö¤òÀµ¤·¤¯°·¤¤¡¢¤Þ¤¿¡¢ ¾¤ÎÆüì¤Êʸ»ú¤¬ÆþÎϤµ¤ì¤Æ¤â¥×¥ê¥ó¥¿¤Ëº®Íð¤òÍ褵¤Ê¤¤¤è¤¦¤Ë ¤¹¤ë¤Î¤Ï¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î»Å»ö¤Ç¤¢¤ë¤È¹Í¤¨¤Æ¤¤¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Î»ÈÍѤËÂФ·¤Æ²Ý¶â¤ò¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤´Ä¶­¤Ë¤¢ ¤ë¤È¤­¤Ï¡¢¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬°õ»ú¤·¤¿¥Ú¡¼¥¸¿ô¤ò¿ô¤¨¤ëºî ¶È¤â¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤³¤Îºî¶È¤Ï¡¢Ä̾°õ»ú¤·¤¿¹Ô ¿ô¤ò¿ô¤¨¡¢¤³¤ì¤ò¥×¥ê¥ó¥¿¤¬ 1 ¥Ú¡¼¥¸Åö¤¿¤ê¤Ë°õ»ú¤Ç¤­¤ë¹Ô ¿ô¤ÈÈæ³Ó¤¹¤ë¤³¤È¤Ç¤ª¤³¤Ê¤ï¤ì¤Þ¤¹¡£ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ï¡¢¼¡¤Î¤è¤¦¤Ê°ú¿ô¤òÉÕ¤±¤Æµ¯Æ°¤µ¤ì¤Þ¤¹¡£

    filter-name [-c] -w width -l length -i indent -n login -h host acct-file

    ¤³¤³¤Ç¡¢

    -c

    lpr -l ¤Ë¤è¤Ã¤Æ¥¸¥ç¥Ö¤¬ÆþÎϤµ¤ì¤¿¤È¤­¤ËÍ¿¤¨¤é¤ì¤Þ¤¹¡£

    width

    /etc/printcap ¤Ç»ØÄꤵ¤ì¤¿ pw (page width) ¹àÌܤÎÃͤ¬Í¿¤¨¤é¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢ 132 ¤Ç¤¹¡£

    length

    pl (page length) ¹àÌܤǻØÄꤵ¤ì¤¿Ãͤ¬Í¿¤¨¤é¤ì¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï 66 ¤Ç¤¹¡£

    indent

    lpr -i ¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤¿»ú²¼¤²¤ÎÎ̤ǡ¢ ¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤¹¡£

    login

    ¥Õ¥¡¥¤¥ë¤ò°õ»ú¤·¤¿¥æ¡¼¥¶¤Î¥¢¥«¥¦¥ó¥È̾¤¬ Í¿¤¨¤é¤ì¤Þ¤¹¡£

    host

    ¥¸¥ç¥Ö¤¬ÆþÎϤµ¤ì¤¿¥Û¥¹¥È̾¤¬ Í¿¤¨¤é¤ì¤Þ¤¹¡£

    acct-file

    af ¹àÌܤǻØÄꤵ¤ì¤Æ¤¤¤ë²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤Î̾Á°¤¬Í¿¤¨¤é¤ì¤Þ¤¹¡£

  • ÊÑ´¹¥Õ¥£¥ë¥¿¤Ï¡¢ ÆÃÄê¤Î¥Õ¥¡¥¤¥ë·Á¼°¤ò¥×¥ê¥ó¥¿ ¤¬»æ¤Ë°õ»ú¤Ç¤­¤ë¤è¤¦¤Ê¤â¤Î¤ËÊÑ´¹¤·¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢ ¥×¥ê¥ó¥¿¤Ç ditroff ÁÈÈǥǡ¼¥¿¤òľÀÜ°õ»ú¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£ ¤·¤«¤·¡¢ditroff ¥Ç¡¼¥¿¤ò¥×¥ê¥ó¥¿¤¬¾Ã²½¤·¡¢ °õ»ú¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë·Á¼°¤ØÊÑ´¹¤¹¤ë¤¿¤á¤Ë¡¢ditroff ¥Õ¥¡¥¤¥ëÍÑ¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¡Ö ÊÑ´¹¥Õ¥£¥ë¥¿¡× ¤Ç¡¢¤³¤ì¤é¤Ë´Ø¤¹¤ë¤¹¤Ù¤Æ¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Î²Ý¶â¤ò¤¹¤ëɬÍפ¬¤¢¤ë¾ì¹ç¤Ï¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤Ç¤â°õ»ú¥Ú¡¼¥¸¤ò¿ô¤¨¤ëºî¶È¤¬É¬ÍפȤʤê¤Þ¤¹¡£ ÊÑ´¹¥Õ¥£¥ë¥¿¤Ï¼¡¤Î°ú¿ô¤ò¤È¤Ã¤Æµ¯Æ°¤µ¤ì¤Þ¤¹¡£

    filter-name -x pixel-width -y pixel-height -n login -h host acct-file

    ¤³¤³¤Ç¡¢pixel-width ¤Ï¡¢ px ¹àÌܤǻØÄꤵ¤ì¤¿ÃÍ (¥Ç¥Õ¥©¥ë¥È¤Ï 0)¡¢ pixel-height ¤Ï¡¢ py ¹àÌܤǻØÄꤵ¤ì¤¿ÃÍ (¥Ç¥Õ¥©¥ë¥È¤Ï 0) ¤Ç¤¹¡£

  • ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬»ØÄꤵ¤ì¤Æ ¤ª¤é¤º¡¢¤«¤Ä¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î½ÐÎϤ¬µö²Ä¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß»È¤ï¤ì¤Þ¤¹¡£ ¡Ö ½ÐÎÏ¥Õ¥£¥ë¥¿¡×¤Ç¡¢¤³¤ì¤é¤Î¤³¤È¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Þ¤¹¡£ ½ÐÎÏ¥Õ¥£¥ë¥¿¤ËÂФ¹¤ë°ú¿ô¤Ï¼¡¤Î 2 ¤Ä¤À¤±¤Ç¤¹¡£

    filter-name -w width -l length

    ¤³¤³¤Ç¡¢-w ¤È -l ¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¾ì¹ç¤ÈƱ¤¸¤Ç¤¹¡£

¥Õ¥£¥ë¥¿¤Ï¡¢¼¡¤Ë¼¨¤¹½ªÎ»¾õÂÖ¤ò¤â¤Ã¤Æ¥×¥í¥°¥é¥à¤ò exit ¤¹¤ë¤Ù¤­¤Ç¤¹¡£

exit 0

¥Õ¥£¥ë¥¿¤¬¥Õ¥¡¥¤¥ë¤òÀµ¾ï¤Ë°õ»ú¤·¤¿¾ì¹ç¡£

exit 1

¥Õ¥£¥ë¥¿¤Ï¥Õ¥¡¥¤¥ë¤Î°õ»ú¤Ë¼ºÇÔ¤·¤¿¤¬¡¢ LPD ¤ËºÆÅÙ¥Õ¥¡¥¤¥ë¤Î°õ»ú¤ò»î¤ß¤ÆÍߤ·¤¤¾ì¹ç¡£ ¤³¤Î½ªÎ»¾õÂ֤ǽªÎ»¤·¤¿¾ì¹ç¡¢LPD ¤Ï¥Õ¥£¥ë¥¿¤òºÆ¥¹¥¿¡¼¥È¤·¤Þ¤¹¡£

exit 2

¥Õ¥£¥ë¥¿¤Ï¥Õ¥¡¥¤¥ë¤Î°õ»ú¤Ë¼ºÇÔ¤·¡¢¤«¤Ä¡¢LPD ¤ËºÆ½ÐÎϤò»î¤ß¤ÆÍߤ·¤¯¤Ê¤¤¾ì¹ç¡£¤³¤Î¾ì¹ç¡¢LPD ¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¤òÊü´þ¤·¤Þ¤¹¡£

FreeBSD ¤ËÉÕ°¤¹¤ë¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ /usr/libexec/lpr/lpf ¤Ï¡¢FORM FEED ʸ»ú¤¬Á÷¤é¤ì¤¿¤È¤­¤ä¥×¥ê¥ó¥¿»ÈÍѤËÂФ¹¤ë²Ý¶â¤ò¤É¤Î¤è¤¦¤Ë¤¹¤ë¤«¤ò·èÄꤹ¤ë¤¿¤á¤Ë¡¢ ¥Ú¡¼¥¸Éý¤ä¥Ú¡¼¥¸Ä¹¤Î°ú¿ô¤òÍøÍѤ·¤Þ¤¹¡£¤Þ¤¿¡¢ ²Ý¶âÍѤΥ¨¥ó¥È¥ê¤òºîÀ®¤¹¤ë¤¿¤á¡¢¥í¥°¥¤¥ó̾¡¢¥Û¥¹¥È̾¡¢ ²Ý¶â¥Õ¥¡¥¤¥ë̾¤Î°ú¿ô¤òÍøÍѤ·¤Þ¤¹¡£

¤â¤·¡¢¥Õ¥£¥ë¥¿¤Î¹ØÆþ¤ò¸¡Æ¤¤·¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢LPD ¤È¸ß´¹À­¤¬¤¢¤ë¤«¤É¤¦¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£¤â¤·¤½¤¦¤Ê¤é¤Ð¡¢ ¾å½Ò¤Î°ú¿ô¥ê¥¹¥È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ °ìÈ̸þ¤±¤Î»ÈÍѤΤ¿¤á¤Ë¥Õ¥£¥ë¥¿¤òºîÀ®¤¹¤ë·×²è¤ò¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ Ʊ¤¸°ú¿ô¥ê¥¹¥È¤È½ªÎ»¥³¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£

10.4.1.2. ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¥¸¥ç¥Ö¤ò PostScript® ¥×¥ê¥ó¥¿¤Ç°õ»ú¤¹¤ë

¥³¥ó¥Ô¥å¡¼¥¿¤È PostScript (¤Þ¤¿¤Ï¡¢Â¾¤Î¸À¸ì¤ËÂбþ¤·¤¿) ¥×¥ê¥ó¥¿¤ò¤¢¤Ê¤¿¤·¤«»ÈÍѤ·¤Ê¤¤¾ì¹ç¤Ï¡¢¥×¥ê¥ó¥¿¤Ë¥×¥ì ¥¤¥ó¥Æ¥­¥¹¥È¤òÀäÂФËÁ÷¤é¤Ê¤¤¡¢¤½¤·¤Æ¡¢ ¥×¥ê¥ó¥¿¤Ë¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤òÁ÷¤ê¤¿¤¬¤Ã¤Æ¤¤¤ë ÍÍ¡¹¤Ê¥×¥í¥°¥é¥à¤Îµ¡Ç½¤ò·è¤·¤Æ»È¤ï¤Ê¤¤¤³¤È¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤¦¤¹¤ì¤Ð¡¢ ¤³¤ÎÀá¤Ë½ñ¤«¤ì¤¿¤³¤È¤Ë¿´¤òÈѤ碌¤ëɬÍפϤޤ俤¯¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

¤·¤«¤·¡¢PostScript ¤È¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤ÎξÊý¤Î¥¸¥ç¥Ö¤ò¥×¥ê¥ó¥¿¤ØÁ÷¤ê¤¿¤¤¤È»×¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ¥×¥ê¥ó¥¿ÀßÄê¤Ë¤Ä¤¤¤Æ¤ÎÍ׵᤬Áý¤¨¤ë¤Ç¤·¤ç¤¦¡£ ξ¼Ô¤ò¥×¥ê¥ó¥¿¤ØÁ÷¿®¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ ÅþÃ夷¤¿¥¸¥ç¥Ö¤¬¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Ç¤¢¤ë¤« PostScript ¤Ç¤¢¤ë¤«¤ò¸¡½Ð¤¹¤ë¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬É¬ÍפǤ¹¡£ PostScript ¤Î¥¸¥ç¥Ö¤Ï¤¹¤Ù¤Æ %! ¤Ç»Ï¤Þ¤é¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹ (¾¤Î¥×¥ê¥ó¥¿¸À¸ì¤Ë´Ø¤·¤Æ¤Ï¡¢ ¥×¥ê¥ó¥¿¤Î¥É¥­¥å¥á¥ó¥È¤ò¤´Í÷¤¯¤À¤µ¤¤)¡£ ¥¸¥ç¥Ö¤ÎºÇ½é¤Î 2 ʸ»ú¤¬¤³¤ì¤Ê¤é¤Ð¡¢PostScript ¤Ç¤¢¤ë¤³¤È¤¬Ê¬¤«¤ê¤Þ¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢ ¥¸¥ç¥Ö¤Î¤½¤ì°Ê¹ß¤ÎÉôʬ¤ò¥×¥ê¥ó¥¿¤ËľÀÜÁ÷¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹ (ÌõÃí: PostScript ¤Ç¤Ï¡¢% °Ê¹ß¤Ï¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì¤ë¤Î¤Ç¡¢ºÇ½é¤Î %! ¤Î¹Ô¤òÆɤ߼ΤƤƤâÌäÂê¤Ï¤Ê¤¤)¡£ ºÇ½é¤Î2ʸ»ú¤¬ %! ¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢ ¥Õ¥£¥ë¥¿¤Ï¥Æ¥­¥¹¥È¤ò PostScript ¤ËÊÑ´¹¤·¡¢ ¤½¤Î·ë²Ì¤ò»È¤Ã¤Æ°õ»ú¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£

¤³¤Îºî¶È¤ò¤É¤¦¤ä¤Ã¤Æ¤ä¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Ë¥×¥ê¥ó¥¿¤òÀܳ¤·¤¿¾ì¹ç¤Ï¡¢ lprps ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡£ lprps ¤Ï PostScript ÍѤΥե£¥ë¥¿¤Ç¡¢ ¥×¥ê¥ó¥¿¤È¤ÎÁÐÊý¸þÄÌ¿®¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£ ¤³¤Î¥Õ¥£¥ë¥¿¤Ç¤Ï¡¢¥×¥ê¥ó¥¿¤«¤é¤Î¾éĹ¤Ê¾ðÊó¤òÆÀ¤ë¤³¤È¤Ç¡¢ ¥×¥ê¥ó¥¿¤Î¾õ¶·¤ò¼¨¤¹¥Õ¥¡¥¤¥ë¤¬¹¹¿·¤µ¤ì¤Æ¤¤¤­¤Þ¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢¥æ¡¼¥¶¤ä´ÉÍý¼Ô¤Ï (“¥È¥Ê¡¼»ÄÎ̾¯”¤ä “»æµÍ¤Þ¤ê”¤È¤¤¤Ã¤¿) ¥×¥ê¥ó¥¿¤Î¾õ¶·¤òÀµ³Î¤ËÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£¤·¤«¤·¡¢ ¤â¤Ã¤È½ÅÍפʤ³¤È¤Ï¡¢psif ¤È¸Æ¤Ð¤ì¤ë¥×¥í¥°¥é¥à¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¤³¤Î¥×¥í¥°¥é¥à¤Ï¡¢ ÆþÎϤµ¤ì¤¿¥¸¥ç¥Ö¤¬¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤«¤É¤¦¤«¤ò¸¡½Ð¤·¡¢ ¤³¤ì¤ò PostScript ¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë¡¢textps (lprps ¤ËÉÕ°¤¹¤ëÊÌ¤Î¥×¥í¥°¥é¥à) ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢¤³¤Î¥¸¥ç¥Ö¤ò¥×¥ê¥ó¥¿¤ËÁ÷¤ë¤¿¤á¤Ë¡¢ lprps ¤¬»È¤ï¤ì¤Þ¤¹¡£

lprps ¤Ï FreeBSD Ports Collection ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹ (Ports Collection ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£ »æ¤Î¥µ¥¤¥º¤Ë¹ç¤ï¤»¤Æ print/lprps-a4 ¤Þ¤¿¤Ï print/lprps-letter port ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£lprps ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¸å¤Ï¡¢lprps ¤Î°ìÉô¤Ç¤¢¤ë psif ¥×¥í¥°¥é¥à¤Î¥Ñ¥¹Ì¾¤ò»ØÄꤹ¤ë¤À¤±¤Ç¤¹¡£Ports Collection ¤«¤é lprps ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤È¤­¤Ï¡¢ /etc/printcap ¤ÎÃæ¤Î¥·¥ê¥¢¥ëÀܳ¤·¤¿ PostScript ¥×¥ê¥ó¥¿¤Î¥¨¥ó¥È¥ê¤ËÂФ·¤Æ¡¢¼¡¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

:if=/usr/local/libexec/psif:

LPD ¤Ë¥×¥ê¥ó¥¿¤ò¥ê¡¼¥É¡¦¥é¥¤¥È¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤µ¤»¤ë¤¿¤á¤Ë¡¢ rw ¹àÌܤâ»ØÄꤹ¤Ù¤­¤Ç¤¹¡£

¥Ñ¥é¥ì¥ë¥Ý¡¼¥ÈÀܳ¤Î PostScript ¥×¥ê¥ó¥¿¤Î¾ì¹ç (¤¹¤Ê¤ï¤Á¡¢ lprps ¤¬ ɬÍפȤ·¤Æ¤¤¤ë¥×¥ê¥ó¥¿¤È¤ÎÁÐÊý¸þÄÌ¿®¤¬¤Ç¤­¤Ê¤¤)¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤È¤·¤Æ¼¡¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

#!/bin/sh
#
#  psif - Print PostScript or plain text on a PostScript printer
#  Script version; NOT the version that comes with lprps
#  Installed in /usr/local/libexec/psif
#

IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

if [ "$first_two_chars" = "%!" ]; then
   #
   #  PostScript job, print it.
   #
   echo "$first_line" && cat && printf "\004" && exit 0
   exit 2
else
   #
   #  Plain text, convert it, then print it.
   #
   ( echo "$first_line"; cat ) | /usr/local/bin/textps && printf "\004" && exit 0
   exit 2
fi

¾åµ­¤Î¥¹¥¯¥ê¥×¥È¤Ë¤ª¤¤¤Æ¡¢textps ¤Ï¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤«¤é PostScript ¤ØÊÑ´¹¤¹¤ë¤¿¤á¤ËÊ̤˥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¥×¥í¥°¥é¥à¤Ç¤¹¡£ ¥Æ¥­¥¹¥È¤«¤é PostScript ¤ØÊÑ´¹¤¹¤ë¤Î¤Ë¤Ï¡¢ ¤ª¹¥¤ß¤Î¤É¤ó¤Ê¥×¥í¥°¥é¥à¤Ç¤â»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£FreeBSD Ports Collection (Ports Collection ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤) ¤Ë¤Ï¡¢a2ps ¤È¸Æ¤Ð¤ì¤ë¥Æ¥­¥¹¥È¤«¤é PostScript ¤ËÊÑ´¹¤¹¤ë¥×¥í¥°¥é¥à¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¡£

10.4.1.3. Èó PostScript ¥×¥ê¥ó¥¿¤Ë¤è¤ë PostScript ¤Î¥·¥ß¥å¥ì¡¼¥È

PostScript ¤Ï¼Á¤Î¹â¤¤ÁÈÈǤȰõ»ú¤ò¤ª¤³¤Ê¤¦¤¿¤á¤Î »ö¼Â¾å¤Îɸ½à¤Ç¤¹¡£¤·¤«¤·¤Ê¤¬¤é¡¢PostScript ¤Ï¡¢¹â²Á¤Êɸ½à¤Ç¤¹¡£¤¢¤ê¤¬¤¿¤¤¤³¤È¤Ë¡¢ Aladdin Enterprises ¤«¤é Ghostscript ¤È¸Æ¤Ð¤ì¤ë¡¢ PostScript ¸ß´¹¤ÎÆ°ºî¤ò¤¹¤ë¥Õ¥ê¡¼¤Î¥×¥í¥°¥é¥à¤¬½Ð¤µ¤ì¤Æ¤¤¤Æ¡¢ FreeBSD ¤ÇÆ°¤­¤Þ¤¹¡£ Ghostscript ¤Ï¤Û¤È¤ó¤É¤Î PostScript ¥Õ¥¡¥¤¥ë¤òÆɤळ¤È¤¬¤Ç¤­¡¢ ¤³¤ì¤é¤Î³Æ¥Ú¡¼¥¸¤ò¿¤¯¤Î¥Ö¥é¥ó¥É¤ÎÈó PostScript ¥×¥ê¥ó¥¿¤ò´Þ¤à ÍÍ¡¹¤Ê¥Ç¥Ð¥¤¥¹ÍѤËÊÑ´¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Ghostscript ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¡¢ ¥×¥ê¥ó¥¿ÍѤÎÆÃÊ̤ʥƥ­¥¹¥È¥Õ¥£¥ë¥¿¤ò»È¤¦¤³¤È¤Ë¤è¤Ã¤Æ¡¢ Èó PostScript ¥×¥ê¥ó¥¿¤ò¤¢¤¿¤«¤âËÜʪ¤Î PostScript ¥×¥ê¥ó¥¿¤Ç¤¢¤ë¤«¤Î¤è¤¦¤ËÆ°ºî¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Ghostscript ¤Ï FreeBSD Ports Collection ¤ËÆþ¤Ã¤Æ¤¤¤Þ¤¹¡£ Ê£¿ô¤Î¥Ð¡¼¥¸¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ºÇ¤âÎɤ¯»È¤ï¤ì¤Æ¤¤¤ë¥Ð¡¼¥¸¥ç¥ó¤Ï print/ghostscript-gpl ¤Ç¤¹¡£

PostScript ¥×¥ê¥ó¥¿¤ò¥·¥ß¥å¥ì¡¼¥È¤µ¤»¤ë¾ì¹ç¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ë PostScript ¥Õ¥¡¥¤¥ë¤ò°õ»ú¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¸¡½Ð¤µ¤»¤Þ¤¹¡£ PostScript ¥Õ¥¡¥¤¥ë¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢ ¥Õ¥£¥ë¥¿¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¤òľÀÜ¥×¥ê¥ó¥¿¤ËÁ÷¤ê¤Þ¤¹ (ÌõÃí: ¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤òľÀÜ°õ»ú¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¡¢¤â¤Á¤í¤ó¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤òÄ̤¹É¬Íפ¬¤¢¤ê¤Þ¤¹)¡£PostScript ¤Î¾ì¹ç¤Ï¡¢ ¤Þ¤º¡¢Ghostscript ¤ò»È¤¤¡¢ ¥Õ¥¡¥¤¥ë¤ò¤½¤Î¥×¥ê¥ó¥¿¤¬Íý²ò¤Ç¤­¤ë·Á¼°¤ØÊÑ´¹¤·¤Þ¤¹¡£

¼¡¤ÎÎã¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢Hewlett Packard DeskJet 500 ¥×¥ê¥ó¥¿ÍÑ ¤Î¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ç¤¹¡£ ¾¤Î¥×¥ê¥ó¥¿¤ÇÍѤ¤¤ë¤È¤­¤Ï¡¢-sDEVICE °ú¿ô¤ò gs (Ghostscript) ¥³¥Þ¥ó¥É¤ËÊѤ¨¤Æ¤¯¤À¤µ¤¤ (gs -h ¤ÈÆþÎϤ¹¤ë¤È¡¢¸½ºß¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë Ghostscript ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Î¥ê¥¹¥È¤¬ÆÀ¤é¤ì¤Þ¤¹)¡£

#!/bin/sh
#
#  ifhp - Print Ghostscript-simulated PostScript on a DeskJet 500
#  Installed in /usr/local/libexec/ifhp

#
#  Treat LF as CR+LF (to avoid the "staircase effect" on HP/PCL
#  printers):
#
printf "\033&k2G" || exit 2

#
#  Read first two characters of the file
#
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

if [ "$first_two_chars" = "%!" ]; then
    #
    #  It is PostScript; use Ghostscript to scan-convert and print it.
    #
    /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 \
      -sOutputFile=- - && exit 0

else
    #
    #  Plain text or HP/PCL, so just print it directly; print a form feed
    #  at the end to eject the last page.
    #
    echo "$first_line" && cat && printf "\033&l0H" &&
    exit 0
fi

exit 2

ºÇ¸å¤Ë¡¢if ¹àÌܤòÄ̤·¤Æ¡¢LPD ¤Ë¤³¤Î¥Õ¥£¥ë¥¿¤ò¶µ¤¨¤Æ¤ä¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

:if=/usr/local/libexec/ifhp:

¤³¤ì¤Ç¤ª¤·¤Þ¤¤¤Ç¤¹¡£lpr plain.text ¤È¤« lpr whatever.ps ¤ÈÆþÎϤ·¤Æ¤ß¤Þ¤·¤ç¤¦¡£¤É¤Á¤é¤âÀµ¾ï¤Ë°õ»ú¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£

ÌõÃí: ÆüËܸì¤ò°õ»ú¤¹¤ë¾ì¹ç¤Ï¡¢ ÆüËܸìÂбþ¤Î Ghostscript ¤¬É¬ÍפǤ¹¡£ÆüËܸìÂбþÈǤΠGhostscript ¤â Ports Collection ¤ËÆþ¤Ã¤Æ¤¤¤Þ¤¹¡£

10.4.1.4. ÊÑ´¹¥Õ¥£¥ë¥¿

¡Ö¥×¥ê¥ó¥¿ÀßÄêƳÆþÊÔ¡× ¤Ë½ñ¤«¤ì¤¿´Êñ¤ÊÀßÄ꤬´°Î»¤·¤¿¤é¡¢ºÇ½é¤Ë¡¢ ¤ä¤Ã¤Æ¤ß¤¿¤¤¤È»×¤¦¤³¤È¤Ï¡¢Â¿Ê¬ (¥×¥ì¥¤¥ó ASCII ¥Æ¥­¥¹¥È¤Ë²Ã¤¨¤Æ) ¹¥¤ß¤Î¥Õ¥¡¥¤¥ë·Á¼°¤Î¤¿¤á¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ç¤·¤ç¤¦¡£

10.4.1.4.1. ¤Ê¤¼¡¢ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Î¤«?

ÊÑ´¹¥Õ¥£¥ë¥¿¤Ë¤è¤Ã¤Æ¡¢ ÍÍ¡¹¤Ê¼ïÎà¤Î¥Õ¥¡¥¤¥ë¤ò°õ»ú¤¹¤ë¤³¤È¤¬´Êñ¤Ë¤Ê¤ê¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢TeX ÁÈÈÇ¥·¥¹¥Æ¥à¤Ç¤¿¤¯¤µ¤ó¤Î»Å»ö¤ò¤·¤¿¤È²¾Äꤷ¤Þ¤·¤ç¤¦¡£ ¤½¤·¤Æ¡¢PostScript ¥×¥ê¥ó¥¿¤¬Àܳ ¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Þ¤¹¡£ ¤¹¤ë¤È¡¢TeX ¤Ç DVI ¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ëÅ٤ˡ¢DVI ¥Õ¥¡¥¤¥ë¤ò°õ»ú¤¹¤ë¤¿¤á¤Ë¡¢ ¤³¤ì¤ò PostScript ¥Õ¥¡¥¤¥ë¤ËÊÑ´¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥³¥Þ¥ó¥É¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps

DVI ¥Õ¥¡¥¤¥ëÍѤÎÊÑ´¹¥Õ¥£¥ë¥¿¤¬¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¢¤ë¤È¡¢ LPD ¤ËÊÑ´¹¤ò¸ªÂå¤ï¤ê¤µ¤»¤ë¤³¤È¤ÇËè²óËè²ó ¤ª¤³¤Ê¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤«¤Ã¤¿ÌÌÅݤÊÊÑ´¹ºî¶È¤ò¾Ê¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤Ä¤Þ¤ê¡¢DVI ¤òÀ¸À®¤·¤¿¤é¡¢ ¼¡¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤À¤±¤Ç¡¢¤³¤ì¤¬°õ»ú¤µ¤ì¤Þ¤¹¡£

% lpr -d seaweed-analysis.dvi

LPD ¤Ë DVI ¥Õ¥¡¥¤¥ë¤ÎÊÑ´¹¤ò¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢ -d ¥ª¥×¥·¥ç¥ó ¤ò»ØÄꤷ¤Þ¤¹¡£ ÊÑ´¹¥ª¥×¥·¥ç¥ó¤Î¥ê¥¹¥È¤Ï¡Ö À°·Á¤ÈÊÑ´¹¤Ë´Ø¤¹¤ë¥ª¥×¥·¥ç¥ó¡× ¤ËºÜ¤»¤Æ¤¢¤ê¤Þ¤¹¡£

ÊѲ½¤Î¥ª¥×¥·¥ç¥ó¤Î¤½¤ì¤¾¤ì¤ò¥×¥ê¥ó¥¿¤Ë ¥µ¥Ý¡¼¥È¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¡¢ ¤½¤Î¥Ñ¥¹Ì¾¤ò /etc/printcap ¤ÎÃæ¤Ç»ØÄꤷ¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ÊÑ´¹¥Õ¥£¥ë¥¿¤Ï¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤ò°õ»ú¤¹¤ëÂå¤ï¤ê¤Ë¡¢¥Õ¥£¥ë¥¿¤Ï¥Õ¥¡¥¤¥ë¤ò ¥×¥ê¥ó¥¿¤¬Íý²ò¤Ç¤­¤ë·Á¼°¤ËÊÑ´¹¤¹¤ë¤È¤³¤í¤ò½ü¤±¤Ð¡¢ ¡Ö¥×¥ê¥ó¥¿¤Î´Êñ¤ÊÀßÄê¡×¤ÇÀâÌÀ¤·¤¿¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë (¡Ö ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¥¤¥ó¥¹¥È¡¼¥ë¡× ¤ò¸«¤Æ²¼¤µ¤¤) ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£

10.4.1.4.2. ¤É¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤Ù¤­¤«?

»È¤¤¤¿¤¤¤È»×¤¦ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤Ù¤­¤Ç¤¹¡£ DVI ¤Î¥Ç¡¼¥¿¤òÉÑÈˤ˰õ»ú¤¹¤ë¤Ê¤é¤Ð¡¢DVI ÊÑ´¹¥Õ¥£¥ë¥¿ ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Î¤¬Å¬ÀڤǤ·¤ç¤¦¡£°õ»ú¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é ¤Ê¤¤ troff ¤òÂçÎ̤ËÊú¤¨¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Â¿Ê¬¡¢ troff ¥Õ¥£¥ë¥¿¤¬Íߤ·¤¯¤Ê¤ë¤Ï¤º¤Ç¤¹¡£

¼¡¤Îɽ¤Ï¡¢LPD ¤ÇÆ°ºî¤¹¤ë¥Õ¥£¥ë¥¿¤È¡¢ /etc/printcap ¥Õ¥¡¥¤¥ë¤Ç¤Î¥¨¥ó¥È¥ê¤¹¤ë¹àÌÜ¡¢¤½¤·¤Æ¡¢ lpr ¥³¥Þ¥ó¥É¤Ç¸Æ¤Ó½Ð¤¹ÊýË¡¤ò¤Þ¤È¤á¤¿¤â¤Î¤Ç¤¹¡£

¥Õ¥¡¥¤¥ë·Á¼° /etc/printcap¹àÌÜ lpr ¥ª¥×¥·¥ç¥ó
cifplot cf -c
DVI df -d
plot gf -g
ditroff nf -n
FORTRAN text rf -f
troff tf -f
raster vf -v
¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È if ¤Ê¤·¡¢-p¡¢¤Þ¤¿¤Ï -l

Àè¤ÎÎã¤Î¤è¤¦¤Ë¡¢lpr -d ¤ò»È¤¦¤¿¤á¤Ë¤Ï¡¢½ÐÎÏÀè¤Î¥×¥ê¥ó¥¿¤Î /etc/printcap Æâ¤Î¥¨¥ó¥È¥ê¤Ç¡¢ df ¹àÌܤ¬É¬ÍפǤ¢¤ë¤³¤È¤¬Ê¬¤«¤ê¤Þ¤¹¡£

È¿ÏÀ¤Ï¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¤¬¡¢FORTRAN ¥Æ¥­¥¹¥È¤ä plot ¤Î¤è¤¦¤Ê·Á¼°¤Ï¡¢Â¿Ê¬¡¢ÇѤì¤Æ¤Æ¤¤¤¯¤Ç¤·¤ç¤¦¡£ ¤¢¤Ê¤¿¤Î¥µ¥¤¥È¤Ç¡¢¼«Á°¤Î¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤À¤±¤Ç¡¢ ¥×¥ê¥ó¥È¥ª¥×¥·¥ç¥ó¤Î¤¤¤¯¤Ä¤«¡¢¤¢¤ë¤¤¤Ï¡¢ Á´Éô¤Ë¿·¤·¤¤°ÕÌ£¤òÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢ Printerleaf ¥Õ¥¡¥¤¥ë (Interleaf ¥Ç¥¹¥¯¥È¥Ã¥×¥Ñ¥Ö¥ê¥Ã¥·¥ó¥°¥×¥í¥°¥é¥à¤Ë¤è¤ë¥Õ¥¡¥¤¥ë) ¤òľÀÜ°õ»ú¤·¤¿¤¤¤È¤·¤Þ¤¹¡£ ¤½¤·¤Æ¡¢Printerleaf ÍѤÎÊÑ´¹¥Õ¥£¥ë¥¿¤ò gf ¹àÌÜ¤Ç »ØÄꤷ¤¿¥Ñ¥¹¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ì¤Ð¡¢lpr -g ¤Î°ÕÌ£¤Ï “Printerleaf ¥Õ¥¡¥¤¥ë¤ò°õ»ú¤¹¤ë” °ÕÌ£¤À¤È¥æ¡¼¥¶¤Ë¶µ¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

10.4.1.4.3. ÊÑ´¹¥Õ¥£¥ë¥¿¤Î¥¤¥ó¥¹¥È¡¼¥ë

ÊÑ´¹¥Õ¥£¥ë¥¿¤Ï FreeBSD ¤Î´ðËÜ¥·¥¹¥Æ¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë¤È¤ÏÊ̤˥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¥×¥í¥°¥é¥à¤Ê¤Î¤Ç¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤Ï¡¢ /usr/local ¥Ç¥£¥ì¥¯¥È¥ê¤Î²¼¤ËÃÖ¤¯¤Ù¤­¤Ç¤·¤ç¤¦¡£ ¥Õ¥£¥ë¥¿¤Ï LPD ¤À¤±¤¬¼Â¹Ô¤¹¤ëÆÃÊÌ¤Ê¥×¥í¥°¥é¥à¡¢ ¤¹¤Ê¤ï¤Á¡¢°ìÈ̥桼¥¶¤¬¼Â¹Ô¤¹¤ëɬÍפ¹¤é¤Ê¤¤¥×¥í¥°¥é¥à¤Ê¤Î¤Ç¡¢ /usr/local/libexec ¥Ç¥£¥ì¥¯¥È¥ê¤ËÃÖ¤¯¤Î¤¬ÉáÄ̤Ǥ¹¡£

ÊÑ´¹¥Õ¥£¥ë¥¿¤ò»ÈÍѲÄǽ¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ /etc/printcap ¤ÎÌÜŪ¤Î¥×¥ê¥ó¥¿¤ÎŬÀڤʹàÌÜ¤Ë ¥Õ¥£¥ë¥¿¤¬¤¢¤ë¥Ñ¥¹Ì¾¤ò»ØÄꤷ¤Þ¤¹¡£

DVI ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥×¥ê¥ó¥¿ bamboo ¤Î¥¨¥ó¥È¥ê¤Ë²Ã¤¨¤Æ¤ß¤Þ¤·¤ç¤¦¡£¥×¥ê¥ó¥¿ bamboo ¤Î df ¹àÌܤò¿·¤¿¤Ë²Ã¤¨¤¿ /etc/printcap ¥Õ¥¡¥¤¥ë¤ÎÎã¤ò°Ê²¼¤ËºÆ·Ç¤·¤Þ¤¹¡£

#
#  /etc/printcap for host rose - added df filter for bamboo
#
rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :sh:sd=/var/spool/lpd/rattan:\
        :lp=/dev/lpt0:\
        :if=/usr/local/libexec/if-simple:

bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :sh:sd=/var/spool/lpd/bamboo:\
        :lp=/dev/ttyu5:ms#-parenb cs8 clocal crtscts:rw:\
        :if=/usr/local/libexec/psif:\
        :df=/usr/local/libexec/psdf:

DVI ¥Õ¥£¥ë¥¿¤Ï /usr/local/libexec/psdf ¤È¤¤¤¦ ̾Á°¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£ ¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

#!/bin/sh
#
#  psdf - DVI to PostScript printer filter
#  Installed in /usr/local/libexec/psdf
#
#  Invoked by lpd when user runs lpr -d
#
exec /usr/local/bin/dvips -f | /usr/local/libexec/lprps "$@"

¤³¤Î¥¹¥¯¥ê¥×¥È¤Ç¤Ï¡¢dvips ¤ò¥Õ¥£¥ë¥¿¥â¡¼¥É (°ú¿ô -f) ¤Ç¡¢ ɸ½àÆþÎϾå¤Çµ¯Æ°¤·¤Æ¤¤¤Þ¤¹¡£É¸½àÆþÎϤϰõ»ú¤¹¤ë¥¸¥ç¥Ö¤Ç¤¹¡£ ¤½¤ì¤«¤é¡¢PostScript ¥×¥ê¥ó¥¿ÍÑ¥Õ¥£¥ë¥¿ lprps (¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡Ö ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¥¸¥ç¥Ö¤ò PostScript ¥×¥ê¥ó¥¿¤Ç°õ»ú¤¹¤ë¡× ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤) ¤ò LPD ¤ËÍ¿¤¨¤é¤ì¤¿°ú¿ô¤òÉÕ¤±¤Æµ¯Æ°¤·¤Þ¤¹¡£ lprps ¤Ï¤³¤ì¤é¤Î°ú¿ô¤ò°õ»ú¤µ¤ì¤¿¥Ú¡¼¥¸Ê¬¤Î²Ý¶â¤ò¤ª¤³¤Ê¤¦¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£

10.4.1.4.4. ÊÑ´¹¥Õ¥£¥ë¥¿¤Î¤½¤Î¾¤ÎÎã

ÊÑ´¹¥Õ¥£¥ë¥¿¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤Ï·è¤Þ¤Ã¤¿¥¹¥Æ¥Ã¥×¤¬¤Ê¤¤¤Î¤Ç¡¢ ¤³¤ÎÀá¤Ç¤Ï¡¢Îã¤ò¤â¤Ã¤Èµó¤²¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£ ¤³¤ì¤ò¼«Ê¬¤Ç¥Õ¥£¥ë¥¿¤òºî¤ëºÝ¤Î¥¬¥¤¥É¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ ŬÅö¤ÊÎ㤬¤¢¤Ã¤¿¤é¡¢¤½¤ì¤ò¤½¤Î¤Þ¤Þ»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¼¡¤Î¥¹¥¯¥ê¥×¥ÈÎã¤Ï¡¢Hewlett Packard LaserJet III-Si ¤Î¤¿¤á¤Î¡¢raster (¤¨¤¨¤È¡¦¡¦¼Â¤Ï¡¢GIF ¥Õ¥¡¥¤¥ë) ÍѤÎÊÑ´¹¥Õ¥£¥ë¥¿¤Ç¤¹¡£

#!/bin/sh
#
#  hpvf - Convert GIF files into HP/PCL, then print
#  Installed in /usr/local/libexec/hpvf

PATH=/usr/X11R6/bin:$PATH; export PATH

giftopnm | ppmtopgm | pgmtopbm | pbmtolj -resolution 300 \
    && exit 0 \
    || exit 2

¤³¤³¤Ç¤Ï¡¢GIF ¥Õ¥¡¥¤¥ë¤«¤é PNM (portable anymap) ·Á¼°¤ËÊÑ´¹¤·¡¢¼¡¤Ë PGM (portable graymap) ·Á¼°¤ËÊÑ´¹¤·¤Æ¤«¤é¡¢ LaserJet/PCL-¸ß´¹¥Ç¡¼¥¿¤ËÊÑ´¹¤·¤Æ¤¤¤Þ¤¹¡£

¾åµ­¤Î¥Õ¥£¥ë¥¿¤ò»È¤¦¥×¥ê¥ó¥¿¤Î¤¿¤á¤Î¥¨¥ó¥È¥ê¤òÉÕ¤±²Ã¤¨¤¿ /etc/printcap ¥Õ¥¡¥¤¥ë¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

#
#  /etc/printcap for host orchid
#
teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
        :lp=/dev/lpt0:sh:sd=/var/spool/lpd/teak:mx#0:\
        :if=/usr/local/libexec/hpif:\
        :vf=/usr/local/libexec/hpvf:

¼¡¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢PostScript ¥×¥ê¥ó¥¿ bamboo ¤Î¤¿¤á¤Î groff ÁÈÈÇ¥·¥¹¥Æ¥à¤Î troff ¥Ç¡¼¥¿¤Î¤¿¤á¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤Ç¤¹¡£

#!/bin/sh
#
#  pstf - Convert groff's troff data into PS, then print.
#  Installed in /usr/local/libexec/pstf
#
exec grops | /usr/local/libexec/lprps "$@"

¾åµ­¤Î¥¹¥¯¥ê¥×¥È¤Ç¤Ï¥×¥ê¥ó¥¿¤È¤ÎÄÌ¿®¤ò¤ª¤³¤Ê¤¦¤¿¤á¡¢ lprps ¤ò¤Þ¤¿ÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤¬¥Ñ¥é¥ì¥ë¥Ý¡¼¥È¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë¡¢ ¼¡¤Î¥¹¥¯¥ê¥×¥È¤ò»È¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£

#!/bin/sh
#
#  pstf - Convert groff's troff data into PS, then print.
#  Installed in /usr/local/libexec/pstf
#
exec grops

¤³¤ì¤Ç´°À®¤·¤Þ¤·¤¿¡£¼¡¤Ë¡¢¥Õ¥£¥ë¥¿¤ò»ÈÍѲÄǽ¤Ë¤¹¤ë¤¿¤á ¤Ë /etc/printcap ¤Ë²Ã¤¨¤ëɬÍפ¬¤¢¤ë¥¨¥ó¥È¥ê¤ò¼¨¤·¤Þ¤¹¡£

:tf=/usr/local/libexec/pstf:

¼¡¤ÎÎã¤ò¤ß¤¿¤é¡¢FORTRAN ¤Î¥Ù¥Æ¥é¥ó¤ÏÀÖÌ̤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤Î FORTRAN ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ï¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤òľÀÜ°õ»ú¤Ç¤­¤ë¤¹¤Ù¤Æ¤Î¥×¥ê¥ó¥¿¤ÇÍøÍѤǤ­¤Þ¤¹¡£ ¤³¤Î¥Õ¥£¥ë¥¿¤ò¥×¥ê¥ó¥¿ teak ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£

#!/bin/sh
#
# hprf - FORTRAN text filter for LaserJet 3si:
# Installed in /usr/local/libexec/hprf
#

printf "\033&k2G" && fpr && printf "\033&l0H" && exit 0
exit 2

¤½¤·¤Æ¡¢¤³¤Î¥Õ¥£¥ë¥¿¤ò»ÈÍѲÄǽ¤Ë¤¹¤ë¤¿¤á¡¢°Ê²¼¤Î¹Ô¤ò /etc/printcap ¤Î¥×¥ê¥ó¥¿ teak ¤Î¥¨¥ó¥È¥ê¤Ë²Ã¤¨¤Þ¤¹¡£

:rf=/usr/local/libexec/hprf:

¤³¤ì¤¬ºÇ¸å¤Î¡¢¤½¤·¤Æ¡¢¼ã´³Ê£»¨¤ÊÎã¤Ç¤¹¡£Á°¤Ë¾Ò²ð¤·¤¿ LaserJet ¥×¥ê¥ó¥¿ teak ¤Ë¡¢DVI ¥Õ¥£¥ë¥¿¤ò²Ã¤¨¤ë ¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£ºÇ½é¤Ë¡¢ ´Êñ¤ÊÉôʬ¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢DVI ¥Õ¥£¥ë¥¿¤Î°ÌÃÖ¤ò /etc/printcap ¤Ë½ñ¤­²Ã¤¨¤Þ¤¹¡£

:df=/usr/local/libexec/hpdf:

¤µ¤Æ¡¢Æñ¤·¤¤Éôʬ¤Ç¤¢¤ë¥Õ¥£¥ë¥¿¤ÎºîÀ®¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£ ¤³¤Î¤¿¤á¤Ë¡¢DVI ¤«¤é LaserJet/PCL ¤Ø¤ÎÊÑ´¹¥×¥í¥°¥é¥à¤¬É¬ÍפǤ¹¡£FreeBSD ¤Î Ports Collection (Ports Collection ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤) ¤Ë¤Ï¡¢¤½¤ì¤¬¤¢¤ê¤Þ¤¹¡£ dvi2xx ¤È¤¤¤¦¤Î¤¬¤½¤Î port ¤Î̾Á°¤Ç¤¹¡£ ¤³¤ì¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¡¢É¬Í×¤Ê¥×¥í¥°¥é¥à dvilj2p ¤¬»È¤¨¤Þ¤¹¡£¤³¤Î¥×¥í¥°¥é¥à¤Ï DVI ¤ò LaserJet IIp¡¢LaserJet III¡¢¤½¤·¤Æ LaserJet 2000 ¤Î¸ß´¹¥³¡¼¥É¤ØÊÑ´¹¤·¤Æ¤¯¤ì¤Þ¤¹¡£

dvilj2p ¤Ï¥Õ¥£¥ë¥¿ hpdf ¤ò¶Ë¤á¤ÆÊ£»¨¤Ë¤·¤Æ¤¤¤Þ¤¹¡£ ¤Ê¤¼¤Ê¤é¡¢dvilj2p ¤Ïɸ½àÆþÎϤ«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤à¤³¤È¤¬¤Ç¤­¤Ê¤¤¤«¤é¤Ç¤¹¡£ ¤³¤Î¥×¥í¥°¥é¥à¤òƯ¤«¤»¤ë¤¿¤á¤Ë¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤¬É¬ÍפǤ¹¡£ ¤â¤Ã¤È°­¤¤¤³¤È¤Ë¡¢¥Õ¥¡¥¤¥ë̾¤Ï .dvi ¤Ç½ª¤ï¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¡¢É¸½àÆþÎϤÎÂå¤ï¤ê¤Ë¡¢ /dev/fd/0 ¤ò»È¤¦¤Î¤ÏÌäÂ꤬¤¢¤ê¤Þ¤¹¡£ ¤³¤ÎÌäÂê¤Ï¡¢(.dvi ¤Ç½ª¤ï¤ë) °ì»þŪ¤Ê¥Õ¥¡¥¤¥ë̾¤«¤é/dev/fd/0 ¤Ë (¥·¥ó¥Ü¥ê¥Ã¥¯¤Ê) ¥ê¥ó¥¯¤òÄ¥¤ë ¤³¤È¤Ç²óÈò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ç¡¢ dvilj2p ¤Ë¶¯À©Åª¤Ëɸ½àÆþÎϤ«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤Þ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¤â¤¦1¤Ä¤ÎÌäÂê¤Ï¡¢°ì»þŪ¤Ê¥ê¥ó¥¯¤òÄ¥¤ë¤¿¤á¤Ë /tmp ¥Ç¥£¥ì¥¯¥È¥ê¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Ê¤¤¤È¤¤¤¦»ö¼Â¤Ç¤¹¡£ ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ï¥æ¡¼¥¶¡¢¥°¥ë¡¼¥×¤¬ bin ¤Ç¤¢¤ë¥æ¡¼¥¶¤Ë½êÍ­¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Õ¥£¥ë¥¿¤Ï¥æ¡¼¥¶ daemon ¤È¤·¤Æµ¯Æ°¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢ /tmp ¥Ç¥£¥ì¥¯¥È¥ê¤Ï¥¹¥Æ¥£¥Ã¥­¡¼¥Ó¥Ã¥È¤¬Î©¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥Õ¥£¥ë¥¿¤Ï¥ê¥ó¥¯¤òºî¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤·¤«¤·¡¢ ¥ê¥ó¥¯¤ÏÊ̤Υ桼¥¶¤Ë½êÍ­¤µ¤ì¤Æ¤¤¤ë¤¿¤á¡¢ ºî¶È¤¬½ªÎ»¤·¤¿¤È¤­¡¢¤³¤Î¥ê¥ó¥¯¤òºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£

¤½¤ÎÂå¤ï¤ê¤Ë¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ï¸½ºß¤Îºî¶È¥Ç¥£¥ì¥¯¥È¥ê¡¢ ¤¹¤Ê¤ï¤Á¡¢¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê (/etc/printcap ¤Î sd ¹àÌܤǻØÄꤹ¤ë) ¤Ëºî¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£ ¥Õ¥£¥ë¥¿¤¬ºî¶È¤¹¤ë¤Ë¤Ï¤³¤³¤Î¾ì½ê¤Ï´°àú¤Ê¾ì½ê¤Ç¡¢¤Ê¤¼¤Ê¤é¡¢ Æäˡ¢¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ç¥£ ¥¹¥¯¤Î¶õ¤­ÍÆÎÌ¤Ï (¤È¤­¤É¤­) /tmp ¥Ç¥£¥ì¥¯¥È¥ê¤è¤ê¤â¤¿¤¯¤µ¤ó¤¢¤ë¤«¤é¤Ç¤¹¡£

°Ê²¼¤Ë¼¨¤¹¤Î¤¬ºÇ¸å¤Î¥Õ¥£¥ë¥¿¤Ç¤¹¡£

#!/bin/sh
#
#  hpdf - Print DVI data on HP/PCL printer
#  Installed in /usr/local/libexec/hpdf

PATH=/usr/local/bin:$PATH; export PATH

#
#  Define a function to clean up our temporary files.  These exist
#  in the current directory, which will be the spooling directory
#  for the printer.
#
cleanup() {
   rm -f hpdf$$.dvi
}

#
#  Define a function to handle fatal errors: print the given message
#  and exit 2.  Exiting with 2 tells LPD to do not try to reprint the
#  job.
#
fatal() {
    echo "$@" 1>&2
    cleanup
    exit 2
}

#
#  If user removes the job, LPD will send SIGINT, so trap SIGINT
#  (and a few other signals) to clean up after ourselves.
#
trap cleanup 1 2 15

#
#  Make sure we are not colliding with any existing files.
#
cleanup

#
#  Link the DVI input file to standard input (the file to print).
#
ln -s /dev/fd/0 hpdf$$.dvi || fatal "Cannot symlink /dev/fd/0"

#
#  Make LF = CR+LF
#
printf "\033&k2G" || fatal "Cannot initialize printer"

#
#  Convert and print.  Return value from dvilj2p does not seem to be
#  reliable, so we ignore it.

#
dvilj2p -M1 -q -e- dfhp$$.dvi

#
#  Clean up and exit
#
cleanup
exit 0

10.4.1.4.5. ¼«Æ°ÊÑ´¹: ¤½¤Î¾¤ÎÊÑ´¹¥Õ¥£¥ë¥¿

¤³¤³¤Þ¤Ç¤Ë½Ò¤Ù¤Æ¤­¤¿¥Õ¥£¥ë¥¿¤Ë¤è¤Ã¤Æ¡¢ °õ»ú´Ä¶­¤ÎǽΨ¤¬¾å¤¬¤Ã¤¿¤³¤È¤È»×¤¤¤Þ¤¹¡£¤·¤«¤·¡¢ ¤³¤ì¤Ï¤É¤Î¥Õ¥£¥ë¥¿¤ò»È¤¦¤«¤ò (lpr(1) ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç) ¥æ¡¼¥¶¤¬»ØÄꤷ¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤È¤¤¤¦Âå²Á¤ò»Ùʧ¤Ã¤Æ¼Â¸½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥³¥ó¥Ô¥å¡¼¥¿¤Î»ö¾ð¤Ë¤¢¤Þ¤ê¾Ü¤·¤¯¤Ê¤¤¥æ¡¼¥¶¤Ë¤È¤Ã¤Æ¡¢ ¥Õ¥£¥ë¥¿¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤵ¤»¤é¤ì¤ë¤È¤¤¤¦¤³¤È¤Ï ¤¤¤é¤¤¤é¤µ¤»¤é¤ì¤ë¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£¹¹¤Ë°­¤¤¤³¤È¤Ë¡¢ ´Ö°ã¤Ã¤¿¥Õ¥£¥ë¥¿¥ª¥×¥·¥ç¥ó¤ò»ØÄꤵ¤ì¤ë¤È¡¢ ´Ö°ã¤Ã¤¿·Á¼°¤Î¥Õ¥¡¥¤¥ë¤¬¤½¤Î¥Õ¥£¥ë¥¿¤ËŬÍѤµ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¡¢ ¤½¤Î·ë²Ì¡¢²¿É´Ëç¤â¤Î»æ¤òÅǤ­½Ð¤¹¤³¤È¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¤½¤Î¤è¤¦¤Ê·ë²Ì¤Ë¤Ê¤ë¤Ê¤é¤Ð¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤è¤ê¤â¤à¤·¤í¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¥Õ¥£¥ë¥¿¤Ê¤Î¤Ç) ¤Ë°õ»ú¤¹¤ë¤è¤¦Í׵ᤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î·Á¼°¤ò¸¡½Ð¤µ¤»¡¢¼«Æ°Åª¤Ë¡¢ ŬÀÚ¤ÊÊÑ´¹¥Õ¥£¥ë¥¿¤òµ¯Æ°¤¹¤ë¤è¤¦¤Ë¤·¤¿¤¤¤È»×¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤³¤Ç¤Ï file ¥³¥Þ¥ó¥É¤Î¤è¤¦¤Ê¥Ä¡¼¥ë¤òÌòΩ¤¿¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤â¤Á¤í¤ó¡¢¤¤¤¯¤Ä¤«¤Î ¥Õ¥¡¥¤¥ë·Á¼°¤Î°ã¤¤¤ò¸«Ê¬¤±¤ë¤³¤È¤ÏÆñ¤·¤¤¤³¤È¤Ç¤·¤ç¤¦¡£ ¤½¤·¤Æ¡¢¤â¤Á¤í¤ó¡¢¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤Ï¡¢ ÊÑ´¹¥Õ¥£¥ë¥¿¤òÄ󶡤¹¤ë¤À¤±¤ÇºÑ¤Þ¤¹¤³¤È¤â¤Ç¤­¤ë¤Î¤Ç¤¹¡£

FreeBSD Ports Collection ¤Ë¤Ï¡¢apsfilter (print/apsfilter) ¤È¸Æ¤Ð¤ì¤ë¼«Æ°ÊÑ´¹¤ò¤ª¤³¤Ê¤¦¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥Õ¥£¥ë¥¿¤Ï ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¡¢PostScript, DVI ¤Ê¤É¡¢¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë·Á¼°¤ò¸¡½Ð¤·¡¢Å¬Åö¤ÊÊÑ´¹¤ò¤ª¤³¤Ê¤Ã¤¿¸å¡¢ ¥Ç¡¼¥¿¤ò°õ»ú¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

10.4.1.5. ½ÐÎÏ¥Õ¥£¥ë¥¿

LPD ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ ¤³¤³¤Þ¤Ç¤Ë¤Þ¤À¼è¤ê¾å¤²¤Æ¤¤¤Ê¤¤¥Õ¥£¥ë¥¿·Á¼°¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¤è¤¦¤Ë¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¤ß¤ò°õ»ú¤¹¤ë¤¿¤á¤Ë°Õ¿Þ¤µ¤ì¤¿¤â¤Î¤Ç¤¹¤¬¡¢ Èó¾ï¤Ë´Êñ²½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤òÍѤ¤¤º¤Ë¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

  • LPD ¤Ï¥¸¥ç¥ÖÃæ¤Î³Æ¥Õ¥¡¥¤¥ë¤Ë°ìÅ٤ǤϤʤ¯¡¢ ¥¸¥ç¥ÖÁ´ÂΤËÂФ·¤Æ°ìÅÙ¤À¤±½ÐÎÏ¥Õ¥£¥ë¥¿¤òµ¯Æ°¤·¤Þ¤¹¡£

  • LPD ¤Ï½ÐÎÏ¥Õ¥£¥ë¥¿¤ËÂФ·¡¢ ¥¸¥ç¥ÖÃæ¤Î¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤äËöÈø¤òÆÃÄꤹ¤ë¤¿¤á¤ÎÂкö¤ò °ìÀÚ¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤»¤ó¡£

  • LPD ¤Ï¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó̾¤ä¥Û¥¹¥È̾¤ò¥Õ¥£¥ë¥¿¤ËÅϤ·¤Þ¤»¤ó¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢²Ý¶â¤Î½èÍý¤ò¤ª¤³¤Ê¤¦¤³¤È¤Ï¹Í¤¨¤Æ¤¤¤Þ¤»¤ó¡£ ¼ÂºÝ¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Ë¤Ï¡¢°Ê²¼2¤Ä¤Î°ú¿ô¤·¤«Í¿¤¨¤é¤ì¤Þ¤»¤ó¡£

    filter-name -wwidth -llength

    ¤³¤³¤Ç¡¢width ¤ÏÂоݤȤʤë¥×¥ê¥ó¥¿¤Î pw ¹àÌÜ¡¢ length ¤Ï pl ¹àÌܤ˻ØÄꤵ¤ì¤¿¿ô¤Ç¤¹¡£

½ÐÎÏ¥Õ¥£¥ë¥¿¤Î´ÊÊؤµ¤ËͶÏǤµ¤ì¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£¤â¤·¡¢ ¥¸¥ç¥ÖÃæ¤Î¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¤ËÊ̤Υڡ¼¥¸ÈÖ¹æ¤òÉղ䷤褦¤È¤·¤Æ¤â¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¤¦¤Þ¤¯Æ°ºî¤·¤Ê¤¤¤Ç¤·¤ç¤¦¡£ ¤½¤Î¤è¤¦¤ÊÆ°ºî¤ò´üÂÔ¤·¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢ (ÆþÎÏ¥Õ¥£¥ë¥¿¤È¤·¤Æ¤âÃΤé¤ì¤Æ¤¤¤ë) ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£ ¾Ü¤·¤¯¤Ï¡¢¡Ö ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¥¤¥ó¥¹¥È¡¼¥ë¡×¤ò¤´Í÷¤¯¤À¤µ¤¤¡£ ¤µ¤é¤Ë¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¡¢¼Â¤Î¤È¤³¤í¡¢ ¤â¤Ã¤ÈÊ£»¨¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤Þ¤º¡¢ Æüì¤Ê¥Õ¥é¥°Ê¸»ú¤ò¸¡½Ð¤¹¤ë¤¿¤á¤Ë¡¢ ¥Õ¥£¥ë¥¿¤ËÁ÷¤é¤ì¤Æ¤¯¤ë¥Ð¥¤¥È¥¹¥È¥ê¡¼¥à¤ò¸¡ºº¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤Þ¤¿¡¢LPD ¤ËÂå¤ï¤Ã¤Æ¡¢ ¼«Ê¬¼«¿È¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤é¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

¤·¤«¤·¤Ê¤¬¤é¡¢¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤ò¤ª¤³¤Ê¤¤¤¿¤¯¤Æ¡¢ ¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤ä¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤½¤Î¾¤Î½é´ü²½Ê¸»úÎó¤òÁ÷¿®¤¹¤ëɬÍפ¬¤¢¤ë¾ì¹ç¤Ï¡¢ ½ÐÎÏ¥Õ¥¡¥¤¥ë¤¬É¬ÍפǤ¹¡£ (¤·¤«¤·¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÍ׵ᤷ¤¿¥æ¡¼¥¶¤ËÂФ·¤Æ²Ý¶â¤·¤è¤¦¤È¤¹¤ë¤Î¤â¤Þ¤¿ÌµÂ̤ʤ³¤È¤Ç¤¹¡£ LPD ¤Ï½ÐÎÏ¥Õ¥£¥ë¥¿¤Ë¥æ¡¼¥¶¤ä¥Û¥¹¥È¤Î¾ðÊó¤òÅϤ·¤Þ¤»¤ó)¡£

1 Âæ¤Î¥×¥ê¥ó¥¿¤ËÂФ·¡¢LPD ¤Ç¤Ï½ÐÎÏ¥Õ¥£¥ë¥¿¤È¥Æ¥­¥¹¥È¤ä¤½¤Î¾¤Î¥Õ¥£¥ë¥¿¤òξÊý»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¤è¤¦¤Ê¾ì¹ç¡¢LPD ¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸ (¡Ö ¥Ø¥Ã¥À¥Ú¡¼¥¸¡× ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤) ¤À¤±¤ò°õ»ú¤µ¤»¤ë¤¿¤á¤Ë¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤òµ¯Æ°¤µ¤»¤Þ¤¹¡£ ¤½¤ì¤«¤é LPD ¤Ç¤Ï¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Ë 2 ¥Ð¥¤¥È¤Îʸ»ú (ASCII 031 ¤Î¼¡¤Ë ASCII 001) ¤òÁ÷¤ë¤³¤È¤Ç¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤¬¼«Ê¬¼«¿È¤òÄä»ß¤¹¤ë¤³¤È¤ò´üÂÔ¤·¤Æ¤¤¤Þ¤¹¡£ 2 ¥Ð¥¤¥È (031, 001) ¤¬½ÐÎÏ¥Õ¥£¥ë¥¿¤ËÁ÷¤é¤ì¤¿¤È¤­¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¼«Ê¬¼«¿È¤Ë¥·¥°¥Ê¥ë SIGSTOP ¤òÁ÷¤ë¤³¤È¤Ë¤è¤Ã¤ÆÄä»ß¤¹¤ë¤Ï¤º¤Ç¤¹¡£ LPD ¤¬¤½¤Î¾¤Î¥Õ¥£¥ë¥¿¤òÆ°¤«¤·½ª¤ï¤ë¤È¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ë¥·¥°¥Ê¥ë SIGCONT ¤òÁ÷¤Ã¤Æ¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤òºÆµ¯Æ°¤·¤Þ¤¹¡£

½ÐÎÏ¥Õ¥£¥ë¥¿¤¬¤¢¤ê¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬¤Ê¤¤¾ì¹ç¡¢ LPD ¤Ï¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¥¸¥ç¥Ö¤ò°·¤¦¾ì¹ç¤Ë¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤ò»È¤¤¤Þ¤¹¡£Á°½Ò¤·¤¿¤è¤¦¤Ë¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Ç¤Ï¡¢ ¥¸¥ç¥ÖÃæ¤Î³Æ¥Õ¥¡¥¤¥ë¤Î´Ö¤Ë FORM FEED ʸ»ú¤ä»æ¤òÁ÷¤ë¾¤Îʸ»ú¤òÆþ¤ì¤ë¤³¤È¤Ï¤·¤Þ¤»¤ó¡£ ¤³¤ÎÆ°ºî¤Ï¿ʬ¡¢ ¤¢¤Ê¤¿¤¬µá¤á¤Æ¤¤¤ë¤â¤Î¤È¤Ï°Û¤Ê¤Ã¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¡£ ¤Û¤È¤ó¤É¤Î¾ì¹ç¤Ë¤ª¤¤¤Æ¡¢¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬É¬ÍפʤϤº¤Ç¤¹¡£

¥×¥í¥°¥é¥à lpf ¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Î¹à¤Ç´û¤Ë¾Ò²ð¤·¤Þ¤·¤¿¤¬¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤È¤·¤Æ¤âÆ°ºî¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤â¤·¡¢ ´ÊÊؤǶ˰­¤Ê½ÐÎÏ¥Õ¥£¥ë¥¿¤¬É¬Íפǡ¢¤«¤Ä¡¢ ¥Ð¥¤¥È¥¹¥È¥ê¡¼¥à¤ò¸¡ºº¤·¤¿¤ê¥·¥°¥Ê¥ë¤òÁ÷¤ë¥³¡¼¥É¤ò½ñ¤­¤¿¤¯¤Ê¤¤¤È¤­¤Ë¤Ï¡¢ lpf ¤ò¤ª»î¤·¤¯¤À¤µ¤¤¡£ ¤¢¤ë¤¤¤Ï¡¢¥×¥ê¥ó¥È¤¬Í׵᤹¤ë½é´ü²½¥³¡¼¥É¤òÁ÷¤ë¤¿¤á¤Ë¡¢ lpf ¤ò¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ËÊñ¤ó¤Ç»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

10.4.1.6. ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ lpf

¥×¥í¥°¥é¥à /usr/libexec/lpr/lpf ¤Ï¡¢ FreeBSD ¤Î ¥Ð¥¤¥Ê¥êÇÛÉÛ¤ËÉÕ°¤·¤Æ¤¤¤ë¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ (ÆþÎÏ¥Õ¥£¥ë¥¿) ¤Ç¡¢½ÐÎϤò»ú²¼¤²¤·¤¿¤ê (lpr -i ¤Ç¥¸¥ç¥Ö¤¬ÆþÎϤµ ¤ì¤¿¤È¤­)¡¢ ʸ»ú¤ò̤½èÍý¤Î¤Þ¤Þ¥×¥ê¥ó¥¿¤ËÁ÷¤Ã¤¿¤ê (lpr -l ¤Ç¥¸¥ç¥Ö¤¬ÆþÎϤµ¤ì¤¿¤È¤­)¡¢ ¥¸¥ç¥ÖÃæ¤Î¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤ä¥¿¥Ö¤Î°õ»ú°ÌÃÖ¤òÄ´Àᤷ¤¿¤ê¡¢ °õ»ú¤·¤¿¥Ú¡¼¥¸¤ËÂФ·¤Æ²Ý¶â¤·¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤Þ¤¿¡¢ ¤³¤Î¥Õ¥£¥ë¥¿¤Ï½ÐÎÏ¥Õ¥£¥ë¥¿¤È¤·¤Æ¤âÆ°ºî¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

lpf ¥Õ¥£¥ë¥¿¤Ï¿¤¯¤Î°õ»ú´Ä¶­¤Ë¤ª¤¤¤Æ»ÈÍѤ¹¤ë¤³¤È¤ËŬ¤·¤Æ¤¤¤Þ¤¹¡£ ¤³¤Î¥Õ¥£¥ë¥¿¤Ë¤Ï¡¢¥×¥ê¥ó¥¿¤Ë½é´ü²½Ê¸»úÎó¤òÁ÷¤ëµ¡Ç½¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢ ɬÍפȤµ¤ì¤ë½é´ü²½¤ò¤ª¤³¤Ê¤¤¡¢¤½¤ì¤«¤é lpf ¤ò¼Â¹Ô¤µ¤»¤ë¤¿¤á¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë¤Î¤Ï¤¿¤ä¤¹¤¤¤³¤È¤Ç¤¹¡£

lpf ¤ËÂФ·¤Æ¡¢ °õ»ú¥Ú¡¼¥¸¤Ø¤Î²Ý¶â¤òÀµ³Î¤Ë¤ª¤³¤Ê¤ï¤»¤ë¤¿¤á¤Ë¤Ï¡¢ /etc/printcap ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Î pw ¤È pl ¤Î¹àÌܤËÀµ³Î¤ÊÃͤòÆþ¤ì¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÃͤϡ¢ ¤É¤Î¤¯¤é¤¤¤ÎÎ̤Υƥ­¥¹¥È¤¬¥Ú¡¼¥¸¤Ë¥Õ¥£¥Ã¥È¤¹¤ë¤«¡¢¤Þ¤¿¡¢ ¥æ¡¼¥¶¤Î¥¸¥ç¥Ö¤¬²¿¥Ú¡¼¥¸¤¢¤ë¤Î¤«¤òÄ´¤Ù¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Î²Ý¶â¤Ë¤Ä¤¤¤Æ¤Î¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö ¥×¥ê¥ó¥¿¤ÎÍøÍѤËÂФ¹¤ë²Ý¶â¡×¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

10.4.2. ¥Ø¥Ã¥À¥Ú¡¼¥¸

¤¢¤Ê¤¿¤¬´ÉÍý¤¹¤ë¥·¥¹¥Æ¥à¤Î¥æ¡¼¥¶¤¬ ¤¿¤¯¤µ¤ó¤ª¤ê¡¢ ¥æ¡¼¥¶Á´°÷¤¬ÍÍ¡¹¤Ê¥×¥ê¥ó¥¿¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢Â¿Ê¬¡¢ ɬÍ×°­¤Ç¤¢¤ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò °õ»ú¤µ¤»¤ë¤³¤È¤ò¸¡Æ¤¤·¤¿¤¤¤È»×¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï¡¢¥Ð¥Ê¡¼ ¤È¤« ¥Ð¡¼¥¹¥È¥Ú¡¼¥¸ ¤È¤·¤Æ¤âÃΤé¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ ½ÐÎϤµ¤ì¤¿¥¸¥ç¥Ö¤¬Ã¯¤Ë¤è¤ë¤â¤Î¤Ê¤Î¤«¤òÆÃÄꤵ¤»¤ëƯ¤­¤¬¤¢¤ê¤Þ¤¹¡£ °õ»ú·ë²Ì¤Î»³¤ÎÃæ¤Ë¤ª¤¤¤Æ¡¢ ¥æ¡¼¥¶¤Î¥¸¥ç¥Ö¤Ë¤è¤Ã¤Æ°õ»ú¤µ¤ì¤¿ËÜʪ¤Î¥É¥­¥å¥á¥ó¥ÈÉôʬ¤è¤ê¤âºÝΩ¤¿¤»¤ë¤¿¤á¤Ë¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï¡¢Ä̾¿ʬ¡¢±ï¤¬Áõ¾þ¤µ¤ì¤Æ¤¤¤ëÂ礭¤ÊÂÀʸ»ú¤Ç°õ»ú¤µ¤ì¤Þ¤¹¡£ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ë¤è¤ê¡¢ ¥æ¡¼¥¶¤Ï¼«Ê¬¤¬½Ð¤·¤¿¥¸¥ç¥Ö¤¬¤É¤³¤Ë¤¢¤ë¤Î¤«¤ò¤¹¤Ð¤ä¤¯¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î·çÅÀ¤Ï¡¢ÌÀ¤é¤«¤Ë¡¢¤¹¤Ù¤Æ¤Î¥¸¥ç¥Ö¤ËÂФ·¤Æ¡¢ »æ¤¬ 1 Ëç;ʬ¤Ë°õ»ú¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¤³¤Î»æ¤ÎÍ­¸ú´ü´Ö¤Ïû¤¯¡¢2 ¡Á 3 ʬ¤â³¤­¤Þ¤»¤ó¡£ºÇ½ªÅª¤Ë¡¢ ¤³¤ì¤é¤Î»æ¤ÏºÆÍøÍÑ»æÆþ¤ì¤ÎÃ椫¤¯¤º¤Î»³¤ËÆþ¤ì¤é¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦ (¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï¥¸¥ç¥ÖÃæ¤Î³Æ¥Õ¥¡¥¤¥ëËè¤Ë°õ»ú¤µ¤ì¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢ ¥¸¥ç¥ÖËè¤Ë°õ»ú¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤·¤¿¤¬¤Ã¤Æ¡¢ »æ¤Î¾ÃÈñ¤Ï¤½¤ì¤Û¤É¤Ò¤É¤¯¤Ï¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó)¡£

¤â¤·¡¢ ¥×¥ê¥ó¥¿¤¬¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤òľÀÜ°õ»ú¤Ç¤­¤ë¤Ê¤é¤Ð¡¢LPD ¥·¥¹¥Æ¥à¤Ï°õ»úʪ¤ËÂФ·¤Æ¼«Æ°Åª¤Ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ PostScript ¥×¥ê¥ó¥¿¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë³°Éô¥×¥í¥°¥é¥à¤¬É¬Íפˤʤê¤Þ¤¹¡£¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¡ÖPostScript ¥×¥ê¥ó¥¿¤Ç¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¡×¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

10.4.2.1. ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤òµö²Ä¤¹¤ë

¡Ö¥×¥ê¥ó¥¿ÀßÄêƳÆþÊÔ ¡×Àá¤Ç¤Ï¡¢/etc/printcap ¥Õ¥¡¥¤¥ë¤Î sh (``suppress header'' : “¥Ø¥Ã¥À¤ò¶¡µë¤·¤Ê¤¤” ¤È¤¤¤¦°ÕÌ£) ¤ò»ØÄꤷ¤Æ¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤ò»ß¤á¤Æ¤¤¤Þ¤·¤¿¡£ ¥×¥ê¥ó¥¿¤Ç¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤òµö²Ä¤¹¤ë¤Ë¤Ï¡¢ sh ¹àÌܤò¼è¤ê½ü¤¯¤À¤±¤Ç¤è¤¤¤Î¤Ç¤¹¡£

¤È¤Æ¤â´Êñ¤½¤¦¤Ë¸«¤¨¤ë¤±¤É¡¢ËÜÅö¤«¤Ê?

¤½¤ì¤ÏËÜÅö¤Ç¤¹¡£ ¥×¥ê¥ó¥¿¤Ë½é´ü²½Ê¸»úÎó¤òÁ÷¤ë¤¿¤á¤Î ½ÐÎÏ¥Õ¥£¥ë¥¿¤òÍÑ°Õ¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£¼¡¤Ë¡¢Hewlett Packard PCL ¸ß´¹¥×¥ê¥ó¥¿¤ÎÎã¤òµó¤²¤Þ¤¹¡£

#!/bin/sh
#
#  hpof - Output filter for Hewlett Packard PCL-compatible printers
#  Installed in /usr/local/libexec/hpof


printf "\033&k2G" || exit 2
exec /usr/libexec/lpr/lpf

of ¹àÌܤ˽ÐÎÏ¥Õ¥£¥ë¥¿¤Î¥Ñ¥¹Ì¾¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö½ÐÎÏ¥Õ¥£¥ë¥¿¡×Àá ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

¼¡¤Ë¡¢°ÊÁ°¾Ò²ð¤·¤¿¥×¥ê¥ó¥¿ teak ¤Î¤¿¤á¤Î /etc/printcap ¥Õ¥¡¥¤¥ë¤ÎÎã¤ò¼¨¤·¤Þ¤¹¡£¤³¤³¤Ç¤Ï¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤òµö²Ä¤·¡¢¾åµ­¤Î½ÐÎÏ¥Õ¥£¥ë¥¿¤òÄɲä·¤Þ¤·¤¿¡£

#
#  /etc/printcap for host orchid
#
teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
        :lp=/dev/lpt0:sd=/var/spool/lpd/teak:mx#0:\
        :if=/usr/local/libexec/hpif:\
        :vf=/usr/local/libexec/hpvf:\
        :of=/usr/local/libexec/hpof:

¤µ¤Æ¡¢¥æ¡¼¥¶¤¬ teak ¤«¤é¥¸¥ç¥Ö¤ò°õ»ú¤µ¤»¤¿¤È¤­¡¢ ¤½¤ì¤¾¤ì¤Î¥¸¥ç¥ÖËè¤Ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤¬°õ»ú¤µ¤ì¤Þ¤¹¡£ ¤â¤·¡¢¥æ¡¼¥¶¤¬°õ»úʪ¤òõ¤¹¤Î¤Ë»þ´Ö¤òÈñ¤ä¤·¤¿¤¤¤È»×¤¦¤Ê¤é¡¢ lpr -h ¤Ë¤è¤Ã¤Æ¥¸¥ç¥Ö¤òÆþÎϤ¹¤ë¤³¤È¤Ç¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤ò»ß¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤ì°Ê³°¤Î lpr(1) ¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¡Ö ¥Ø¥Ã¥À¥Ú¡¼¥¸ÍÑ¥ª¥×¥·¥ç¥ó¡×Àá¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

注意: LPD ¤Ç¤Ï¡¢¥Ø¥Ã¥À¥Ú¡¼¥¸¤ÎºÇ¸å¤Ë¡¢ FORM FEED ʸ»ú¤¬°õ»ú¤µ¤ì¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Ë»æÇӽФò¤µ¤»¤ë¤¿¤á¤Ë¡¢Ê̤Êʸ»ú¡¢ ¤â¤·¤¯¤Ï¡¢Ê̤Êʸ»úÎó¤¬ÍøÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ /etc/printcap Ãæ¤Î ff ¹àÌܤǻØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

10.4.2.2. ¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ©¸æ¤¹¤ë

¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î°õ»ú¤¬µö²Ä¤µ¤ì¤Æ¤¤¤ë¤È¡¢LPD ¤Ï Ť¤¥Ø¥Ã¥À¤òºî¤ê¤Þ¤¹¡£¤³¤ì¤Ë¤Ï¡¢ »æÁ´Ì̤ËÂ礭¤Êʸ»ú¤Ç¥æ¡¼¥¶Ì¾¡¢¥Û¥¹¥È̾¡¢ ¥¸¥ç¥Ö̾¤¬½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£¼¡¤Ë¡¢¤³¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¤ÎÎã¤ò¼¨ ¤·¤Þ¤¹ (kelly ¤¬¥¸¥ç¥Ö̾ “outline” ¤ò rose ¤È¤¤¤¦¥Û¥¹¥È¤«¤é°õ»ú ¤µ¤ì¤¿¾ì¹ç)¡£

      k                   ll       ll
      k                    l        l
      k                    l        l
      k   k     eeee       l        l     y    y
      k  k     e    e      l        l     y    y
      k k      eeeeee      l        l     y    y
      kk k     e           l        l     y    y
      k   k    e    e      l        l     y   yy
      k    k    eeee      lll      lll     yyy y
                                               y
                                          y    y
                                           yyyy


                                   ll
                          t         l        i
                          t         l
       oooo    u    u   ttttt       l       ii     n nnn     eeee
      o    o   u    u     t         l        i     nn   n   e    e
      o    o   u    u     t         l        i     n    n   eeeeee
      o    o   u    u     t         l        i     n    n   e
      o    o   u   uu     t  t      l        i     n    n   e    e
       oooo     uuu u      tt      lll      iii    n    n    eeee









      r rrr     oooo     ssss     eeee
      rr   r   o    o   s    s   e    e
      r        o    o    ss      eeeeee
      r        o    o      ss    e
      r        o    o   s    s   e    e
      r         oooo     ssss     eeee







                                              Job:  outline
                                              Date: Sun Sep 17 11:04:58 1995

LPD ¤Ï¤³¤Î¥Æ¥­¥¹¥È¤Î½ª¤ï¤ê¤Ë FORM FEED ʸ»ú¤ò²Ã¤¨¤Þ¤¹ ¤Î¤Ç¡¢¥¸¥ç¥Ö¤Ï¿·¤·¤¤¥Ú¡¼¥¸¤«¤é³«»Ï¤µ¤ì¤Þ¤¹ (¤¿¤À¤·¡¢ /etc/printcap ¤Ç½ÐÎÏÀè¤Î¥×¥ê¥ó¥¿¤Î¥¨¥ó¥È¥ê¤Ë sf (suppress form feeds) ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤­¤Ï¤³ ¤Î¸Â¤ê¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó)¡£

¤ªË¾¤ß¤Ê¤é¤Ð¡¢LPD ¤Ëû¤¤¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò½ÐÎϤµ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ï¡¢ /etc/printcap ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç sb (short banner) ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

rose:kelly  Job: outline  Date: Sun Sep 17 11:07:51 1995

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢LPD ¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤òºÇ½é¤Ë°õ»ú¤·¡¢¼¡¤Ë¥¸¥ç¥Ö¤Î°õ»ú¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£ ¤³¤Î½çÈÖ¤òµÕ¤Ë¤¹¤ë¤È¤­¤Ï¡¢ /etc/printcap ¤Ç hl (header last) ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£

10.4.2.3. ¥Ø¥Ã¥À¥Ú¡¼¥¸¤ËÂФ¹¤ë²Ý¶â

LPD ¤ËÈ÷¤ï¤Ã¤Æ¤¤¤ë¥Ø¥Ã¥À¥Ú¡¼¥¸½ÐÎϵ¡Ç½¤ò»È¤¦¤È¡¢ ÆþÎϤµ¤ì¤¿¥¸¥ç¥Ö¤ËÂФ·¤Æ²Ý¶â¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Æ¤â¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï̵ÎÁ¤ÇÄ󶡤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡¢ ¤È¤¤¤¦ÆÃÍ­¤Î¤ä¤êÊý¤ò¶¯Íפµ¤ì¤Þ¤¹¡£

¤Ê¤¼¤Ç¤·¤ç¤¦¤«¡£

½ÐÎÏ¥Õ¥£¥ë¥¿¤Ïñ¤Ê¤ë³°Éô¥×¥í¥°¥é¥à¤Ê¤Î¤Ç¡¢ ²Ý¶â¤ò¤¹¤ë¤¿¤á¤ÎÀ©¸æ¤ò¤ª¤³¤Ê¤¦¤È¤¹¤ì¤Ð¡¢ ¤½¤ì¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤¹¤ë¤È¤­¤Ç¤¹¤¬¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Ë¤Ï¡¢ ¥æ¡¼¥¶Ì¾¤È¥Û¥¹¥È̾ ¤Î¾ðÊó¤ä²Ý¶â¾ðÊó¤ò³ÊǼ¤¹¤ë¥Õ¥¡¥¤¥ë¤¬¤É¤ì¤Ê ¤Î¤«¤È¤¤¤¦¤³¤È¤¬ÃΤ餵¤ì¤Þ¤»¤ó¡£¤½¤ì¤æ¤¨¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢ ï¤Ë¥×¥ê¥ó¥¿ÍøÍѤβݶâ¤ò¤ª¤³¤Ê¤¨¤Ð¤è¤¤¤Î¤«¤¬Ê¬¤«¤é¤Ê¤¤¤Î¤Ç¤¹¡£ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤ä¤½¤Î¾¤ÎÊÑ´¹¥Õ¥£¥ë¥¿ (¤³¤ì¤é¤Î¥Õ¥£¥ë¥¿¤Ï¥æ¡¼¥¶¤ä¥Û¥¹¥È¤Î¾ðÊó¤¬ÃΤ餵¤ì¤Þ¤¹) ¤¬½ÐÎÏ¥Ú¡¼¥¸¤ÎËç¿ô¤Ë “1 ¥Ú¡¼¥¸Ê¬¿åÁý¤·¤¹¤ë” ¤À¤±¤Ç¤Ï½½Ê¬¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¤Ê¤¼¤Ê¤é¡¢¥æ¡¼¥¶¤Ï lpr -h ¤Ë ¤è¤Ã¤Æ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î½ÐÎϤò»ß¤á¤ë¤³¤È¤¬¤Ç¤­¤ë¤«¤é¤Ç¤¹¡£ ¤ä¤ß¤¯¤â¤Ë 1 ¥Ú¡¼¥¸¤ò¿åÁý¤·¤¹¤ë¤È¡¢ °õ»ú¤µ¤ì¤Æ¤â¤¤¤Ê¤¤¥Ø¥Ã¥À¥Ú¡¼¥¸¤ËÂФ¹¤ë ÎÁ¶â¤ò¤È¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£´ðËÜŪ¤Ë¡¢lpr -h ¤Ï´Ä¶­¤ËÍ¥¤·¤¤¿´¤ò»ý¤Ä¥æ¡¼¥¶¤Ë¹¥¤Þ¤ì¤ë¥ª¥×¥·¥ç¥ó¤Ç¤¹¤¬¡¢ ¤³¤ì¤ò»È¤¦¤è¤¦¤Ë¾©Î夹¤ë¤³¤È¤â¤Ç¤­¤Þ¤»¤ó¡£

³Æ¡¹¤Î¥Õ¥£¥ë¥¿¤ËÆȼ«¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ¸À®¤µ¤»¤ë (¤½¤Î·ë²Ì¡¢¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ë²Ý¶â¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë) ¤È¤¤¤¦ÊýË¡¤Ç¤â½½Ê¬¤Ç¤¢¤ë¤È¤Ï¤¤¤¨¤Þ¤»¤ó¡£ ¤³¤Î¾ì¹ç¡¢LPD ¤Ï¥Õ¥£¥ë¥¿¤Ë -h ¤Î¾ðÊó¤òÁ÷¤ê¤Þ¤»¤ó¤Î¤Ç¡¢lpr -h ¤Ë¤è¤Ã¤Æ¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤·¤Ê¤¤¥ª¥×¥·¥ç¥ó¤òÁªÂò¤·¤¿¤È¤·¤Æ¤â¡¢ °ÍÁ³¤È¤·¤Æ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï°õ»ú¤µ¤ì¡¢ ¤½¤Îʬ¤Î²Ý¶â¤¬¤ª¤³¤Ê¤ï¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤Ç¤Ï¡¢¤É¤Î¤è¤¦¤ÊÁªÂò»è¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ø¤Î²Ý¶â¤Ë´Ø¤·¤Æ¤Ï¡¢ ¼¡¤Î¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

  • LPD ¤Î¤ä¤êÊý¤ò¼õ¤±Æþ¤ì¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ï̵ÎÁ¤È¤¹¤ë¡£

  • LPRng ¤Ê¤É¤Î LPD ¤ÎÂåÂØÉʤò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¡£ LPD ¤ÈÆþ¤ìÂؤ¨¤¬²Äǽ¤Ê¾¤Î¥¹¥×¡¼¥ê¥ó¥°¥½¥Õ¥È¥¦¥§¥¢¤Ë´Ø¤·¤Æ¤Ï¡¢ ɸ½à¥¹¥×¡¼¥é¤ÎÂåÂØÉÊ ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

  • ¥¹¥Þ¡¼¥È¤Ê ½ÐÎÏ¥Õ¥£¥ë¥¿¤òºîÀ®¤¹¤ë¡£Ä̾ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¥×¥ê¥ó¥¿¤ò½é´ü²½¤¹¤ë¤«¡¢ ñ½ã¤Êʸ»úÎóÊÑ´¹¤ò¤¹¤ëÄøÅÙ¤ÎƯ¤­¤·¤«¤·¤Þ¤»¤ó¡£ (¥Æ¥­¥¹¥È (ÆþÎÏ) ¥Õ¥£¥ë¥¿¤¬¤Ê¤¤¾ì¹ç) ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤È¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î°õ»ú¤ò¤ª¤³¤Ê¤¦¤Î¤ËŬ¤·¤Æ¤¤¤Þ¤¹¡£ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤ò°õ»ú¤¹¤ë¤¿¤á¤Î¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬¤Ê¤¤¾ì¹ç¡¢ LPD ¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤¹¤ë¤¿¤á¤À¤±¤ÎÌÜŪ¤Ç½ÐÎÏ¥Õ¥£¥ë¥¿¤òµ¯Æ°¤·¤Þ¤¹¡£ ¤½¤·¤Æ¡¢LPD ¤¬À¸À®¤¹¤ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î¥Æ¥­¥¹¥È¤ò²òÀϤ¹¤ë¤³¤È¤Ë¤è¤ê¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤Ë²Ý¶â¤¹¤ë¤¿¤á¤ËɬÍפʥ桼¥¶Ì¾¤È ¥Û¥¹¥È̾¤ò¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ÎÊý¼°¤ÎÍ£°ì¤ÎÌäÂêÅÀ¤Ï¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤Ï²Ý¶â¾ðÊó¤ò³ÊǼ¤¹¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î̾Á°¤òÃΤ뤳¤È¤¬ ¤Ç¤­¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹ (af ¹àÌܤǻØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï ½ÐÎÏ¥Õ¥¡¥¤¥ë¤ËÅϤµ¤ì¤Þ¤»¤ó)¡£¤·¤«¤·¡¢´ûÃΤΠ̾Á°¤Î²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ê¤é¤Ð¡¢ ¤½¤Î̾Á°¤ò½ÐÎÏ¥Õ¥£¥ë¥¿¤Î¥×¥í¥°¥é¥àÃæ¤ËËä¤á¹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ²òÀϤμê½ç¤ò´Êñ¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ /etc/printcap ¤Ç sh ¹àÌÜ (û¤¤¥Ø¥Ã¥À¤ò»ØÄê) ¤ò»È¤¦¤È¤è¤¤¤Ç¤·¤ç¤¦¡£ ¤½¤·¤Æ¤Þ¤¿¡¢ ¤³¤³¤Þ¤Ç¤ÎÊýË¡¤Ï¾¯¤Ê¤«¤é¤Ì¥È¥é¥Ö¥ë¤òÀ¸¤¸¤µ¤»¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤½¤¦¤Ê¤ì¤Ð¡¢¤â¤Á¤í¤ó¥æ¡¼¥¶¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò̵ÎÁ¤Ç Ä󶡤·¤Æ¤¯¤ì¤ëµ¤Á°¤Î¤è¤¤¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ë´¶¼Õ¤¹¤ë¤³¤È¤Ç¤·¤ç¤¦¡£

10.4.2.4. PostScript ¥×¥ê¥ó¥¿¤Ç¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸

¤³¤ì¤Þ¤Ç¤Ë½Ò¤Ù¤¿¤è¤¦¤Ë¡¢LPD ¤Ç¤Ï¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò¤¿¤¯¤µ¤ó¤Î¥×¥ê¥ó¥¿¤Ë¹ç¤¦¤è¤¦¤ËÀ¸À®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ »ÄÇ°¤Ê¤¬¤é¡¢PostScript ¥×¥ê¥ó¥¿¤Ï¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤òľÀÜ°õ»ú¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£¤Ç¤¹¤«¤é¡¢ LPD ¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸µ¡Ç½¤Ï¤Þ¤Ã¤¿¤¯¡¢ ¤¢¤ë¤¤¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢Ìò¤ËΩ¤Á¤Þ¤»¤ó¡£

¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò½ÐÎϤ¹¤ë¤¿¤á¤Î¼«ÌÀ¤ÊÊýË¡¤Î1¤Ä¤Ë¡¢ ¤¹¤Ù¤Æ¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤È¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ¸À®¤µ¤»¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ ¥Õ¥£¥ë¥¿¤Ï¡¢ ŬÀڤʥإåÀ¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë¤¿¤á¤Ë¡¢ ¥æ¡¼¥¶Ì¾¤È¥Û¥¹¥È̾¤Î°ú¿ô¤ò»È¤¦¤Ù¤­¤Ç¤¹¡£¤³¤ÎÊýË¡¤Î·çÅÀ¤Ï¡¢¤¤¤Ä¤Ç¤â¡¢ lpr -h ¤Ë¤è¤Ã¤Æ¥¸¥ç¥Ö¤¬ÆþÎϤµ¤ì¤¿¾ì¹ç¤Ç¤µ¤¨¤â¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤¬°õ»ú¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£

¤³¤ÎÊýË¡¤Ç»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£¼¡¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢3 ¤Ä¤Î°ú¿ô (¥æ¡¼¥¶ ¤Î¥í¥°¥¤¥ó̾¡¢¥Û¥¹¥È̾¡¢¥¸¥ç¥Ö̾) ¤ò¤È¤ê¡¢´Êñ¤Ê PostScript ÍÑ ¤Î¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ¸À®¤·¤Þ¤¹¡£

#!/bin/sh
#
#  make-ps-header - make a PostScript header page on stdout
#  Installed in /usr/local/libexec/make-ps-header
#

#
#  These are PostScript units (72 to the inch).  Modify for A4 or
#  whatever size paper you are using:
#
page_width=612
page_height=792
border=72

#
#  Check arguments
#
if [ $# -ne 3 ]; then
    echo "Usage: `basename $0` <user> <host> <job>" 1>&2
    exit 1
fi

#
#  Save these, mostly for readability in the PostScript, below.
#
user=$1
host=$2
job=$3
date=`date`

#
#  Send the PostScript code to stdout.
#
exec cat <<EOF
%!PS

%
%  Make sure we do not interfere with user's job that will follow
%
save

%
%  Make a thick, unpleasant border around the edge of the paper.
%
$border $border moveto
$page_width $border 2 mul sub 0 rlineto
0 $page_height $border 2 mul sub rlineto
currentscreen 3 -1 roll pop 100 3 1 roll setscreen
$border 2 mul $page_width sub 0 rlineto closepath
0.8 setgray 10 setlinewidth stroke 0 setgray

%
%  Display user's login name, nice and large and prominent
%
/Helvetica-Bold findfont 64 scalefont setfont
$page_width ($user) stringwidth pop sub 2 div $page_height 200 sub moveto
($user) show

%
%  Now show the boring particulars
%
/Helvetica findfont 14 scalefont setfont
/y 200 def
[ (Job:) (Host:) (Date:) ] {
200 y moveto show /y y 18 sub def
} forall

/Helvetica-Bold findfont 14 scalefont setfont
/y 200 def
[ ($job) ($host) ($date) ] {
        270 y moveto show /y y 18 sub def
} forall

%
%  That is it
%
restore
showpage
EOF

¤½¤·¤Æ¡¢ÊÑ´¹¥Õ¥£¥ë¥¿¤ä¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤¬¤½¤ì¤¾¤ì¡¢ ºÇ½é¤Ë¤³¤Î¥¹¥¯¥ê¥×¥È¤òµ¯Æ°¤¹¤ë¤³¤È¤Ç¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤¬½ÐÎϤµ¤ì¡¢¤½¤ì¤«¤é¡¢ ¥æ¡¼¥¶¤Î¥¸¥ç¥Ö¤Î°õ»ú¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£¼¡¤Ë¡¢ ¤³¤Î¥É¥­¥å¥á¥ó¥È¤Î»Ï¤á¤Î¤Û¤¦¤Ç¾Ò²ð¤·¤¿ DVI ÊÑ´¹¥Õ¥£¥ë¥¿¤ò¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤¹¤ë¤è¤¦¤ËÊѹ¹¤·¤¿¤â¤Î¤ò¼¨¤·¤Þ¤¹¡£

#!/bin/sh
#
#  psdf - DVI to PostScript printer filter
#  Installed in /usr/local/libexec/psdf
#
#  Invoked by lpd when user runs lpr -d
#

orig_args="$@"

fail() {
    echo "$@" 1>&2
    exit 2
}

while getopts "x:y:n:h:" option; do
    case $option in
        x|y)  ;; # Ignore
        n)    login=$OPTARG ;;
        h)    host=$OPTARG ;;
        *)    echo "LPD started `basename $0` wrong." 1>&2
              exit 2
              ;;
    esac
done

[ "$login" ] || fail "No login name"
[ "$host" ] || fail "No host name"

( /usr/local/libexec/make-ps-header $login $host "DVI File"
  /usr/local/bin/dvips -f ) | eval /usr/local/libexec/lprps $orig_args

¤³¤Î¥Õ¥£¥ë¥¿¤¬¥æ¡¼¥¶Ì¾¤ä¥Û¥¹¥È̾¤ò·èÄꤹ¤ë¤¿¤á¤Ë °ú¿ô¥ê¥¹¥È¤ò¤É¤Î¤è¤¦¤Ë²òÀϤ·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤«¤È¤¤¤¦ÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤Î²òÀÏÊýË¡¤Ï¾¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤ËÂФ·¤Æ¤âƱÍͤǤ¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °ú¿ô¤ÎÀßÄ꤬¾¯¤·°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹ (¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö ¥Õ¥£¥ë¥¿¤Ï¤É¤Î¤è¤¦¤Ëµ¡Ç½¤·¤Æ¤¤¤ë¤«¡× ¤ò¤´Í÷¤¯¤À¤µ¤¤)¡£

Á°½Ò¤ÎÄ̤ꡢ¾åµ­¤Î¼êË¡¤Ï¡¢¶Ë¤á¤Æñ½ã¤Ê¤Î¤Ë¤â´Ø¤é¤º¡¢ lpr ¤Ç “¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤·¤Ê¤¤” ¥ª¥×¥·¥ç¥ó (-h ¥ª¥×¥·¥ç¥ó) ¤¬»È¤¨¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥æ¡¼¥¶¤¬¿¹ÎÓ»ñ¸»¤ò (¤¢¤ë¤¤¤Ï¡¢ ¥Ø¥Ã¥À¥Ú¡¼¥¸¤¬²Ý¶â¤µ¤ì¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢¤½¤Î¶Ï¤«¤Ê¶â³Û¤ò)¡¢ ÀáÌó¤·¤¿¤¤¤È˾¤ó¤Ç¤¤¤ë¾ì¹ç¤Ç¤â¡¢ ¤¹¤Ù¤Æ¤Î¥Õ¥£¥ë¥¿¤¬¤¹¤Ù¤Æ¤Î¥¸¥ç¥ÖËè¤Ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú ¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢ÀáÌ󤹤뤳¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

¥¸¥ç¥ÖËè¤Ë°õ»ú¤µ¤ì¤ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò ¥æ¡¼¥¶¤¬ÍÞÀ©¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¡Ö ¥Ø¥Ã¥À¥Ú¡¼¥¸¤ËÂФ¹¤ë²Ý¶â¡×¤Ç¾Ò²ð¤·¤¿¥È¥ê¥Ã¥¯¤ò »È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢LPD ¤¬À¸À®¤¹¤ë¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î²òÀϤò¤ª¤³¤Ê¤¤¡¢PostScript ÈǤΥإåÀ¥Ú¡¼¥¸¤ò½ÐÎϤµ¤»¤ë½ÐÎÏ¥Õ¥£¥ë¥¿¤òºî¤ë¤Î¤Ç¤¹¡£ ¤³¤Î¾ì¹ç¡¢¥æ¡¼¥¶¤¬ lpr -h ¤Ç¥¸¥ç¥Ö¤òÆþÎϤ¹¤ë¤È¡¢ LPD ¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤òÀ¸À®¤·¤Ê¤¯¤Ê¤ê¡¢¤Þ¤¿¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤âµ¯Æ°¤µ¤ì¤Þ¤»¤ó¡£¤½¤¦¤Ç¤Ê¤¤¤Ê¤é¤Ð¡¢ ºîÀ®¤·¤¿½ÐÎÏ¥Õ¥£¥ë¥¿¤¬ LPD ¤«¤é¤Î¥Æ¥­¥¹¥È¤òÆɤ߹þ¤ß¡¢¥Ø¥Ã¥À¥Ú¡¼¥¸¤ò°õ»ú¤¹¤ëŬÅö¤Ê PostScript ¤Î¥³¡¼¥É¤¬¥×¥ê¥ó¥¿¤ËÁ÷¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£

PostScript ¥×¥ê¥ó¥¿¤¬¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ ½ÐÎÏ¥Õ¥£¥ë¥¿¤È¤·¤Æ lprps ¤ò¡¢ ¾åµ­¤ÎÆ°ºî¤ò¤ª¤³¤Ê¤¦¤â¤Î¤È¤·¤Æ psof ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤¿¤À¤·¡¢psof ¤Ï¥Ø¥Ã¥À¥Ú¡¼¥¸¤ËÂФ·¤Æ²Ý¶â¤ò¤ª¤³¤Ê¤¤¤Þ¤»¤ó¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

10.4.3. ¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¤«¤é¤Î½ÐÎÏ

FreeBSD ¤Ç¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯±Û¤·¤Î°õ»ú¡¢¤¹¤Ê¤ï¤Á¡¢ ¥¸¥ç¥Ö¤ò¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¤ËÁ÷¤ë¤³¤È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£ ¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¤«¤é¤Î½ÐÎϤò¤¹¤ë¤Ë¤Ï¡¢°ìÈ̤ˡ¢ ¼¡¤Î 2 ¤Ä¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

10.4.3.1. ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿

LPD ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ç¤Ï LPD (¤Þ¤¿¤Ï LPD ¸ß´¹¤Î¥·¥¹¥Æ¥à) ¤¬µ¯Æ°¤·¤Æ¤¤¤ë¾¤Î¥Û¥¹¥È¤Ø¥¸¥ç¥Ö¤òÁ÷¤ëµ¡Ç½¤¬ »Ï¤á¤«¤é¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Îµ¡Ç½¤Ë¤è¤ê¡¢ ¤¢¤ë¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¤Ø¡¢ ¾¤Î¥Û¥¹¥È¤«¤é¥¢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤Þ¤¿¡¢ LPD ¥×¥í¥È¥³¥ë¤òÍý²ò¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ý¤Ã¤¿¥×¥ê¥ó¥¿¤ËÂФ·¤Æ¤â¡¢ ¤³¤Îµ¡Ç½¤ÏƯ¤­¤Þ¤¹¡£

¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¤Ø¤Î½ÐÎϤòµö²Ä¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ºÇ½é¤Ë¡¢ ¤¢¤ë¥Û¥¹¥È (¤³¤ì¤ò¡¢ ¥×¥ê¥ó¥¿¥Û¥¹¥È¤È¸Æ¤Ó¤Þ¤¹) ¤Ë¥×¥ê¥ó¥¿¤òÀܳ¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢¡Ö ¥×¥ê¥ó¥¿ÀßÄêƳÆþÊÔ¡× ¤Ë½ñ¤«¤ì¤¿´Êñ¤Ê¥×¥ê¥ó¥¿¤ÎÀßÄê¤ò¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤¡£ ɬÍפʤé¤Ð¡¢¡Ö¥×¥ê¥ó¥¿ÀßÄê¾åµéÊÔ¡× ¤Ë¤¢¤ë¡¢¹¹¤Ë¿Ê¤ó¤ÀÀßÄê¤ò¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤¡£¤½¤·¤Æ¡¢ ¤½¤Î¥×¥ê¥ó¥¿¤ò¥Æ¥¹¥È¤·¤Æ¤¦¤Þ¤¯Æ°ºî¤¹¤ë¤³¤È¤ò³Îǧ¤·¡¢LPD ¤Ëµö²Ä¤·¤¿µ¡Ç½¤¬¤¦¤Þ¤¯Æ¯¤¯¤«¤É¤¦¤«¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£¤µ¤é¤Ë ¥í¡¼¥«¥ë¥Û¥¹¥È¤¬ ¥×¥ê¥ó¥¿¥Û¥¹¥È¤Î LPD ¥µ¡¼¥Ó¥¹¤Î»ÈÍѤòµö²Ä¤µ¤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Æ²¼¤µ¤¤ (¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤ÎÍøÍѤòÀ©¸Â¤¹¤ë ¡×»²¾È)¡£

LPD ¸ß´¹¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ý¤Ä¥×¥ê¥ó¥¿¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ¤½¤Î¥×¥ê¥ó¥¿¼«¿È¤¬°Ê²¼¤ÇÀâÌÀ¤¹¤ë ¥×¥ê¥ó¥¿¥Û¥¹¥È¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤·¤Æ¡¢ ¥×¥ê¥ó¥¿Ì¾¤È¤Ï¡¢ ¤½¤Î¥×¥ê¥ó¥¿¤ËÀßÄꤷ¤¿Ì¾Á°¤Î¤³¤È¤ò»Ø¤·¤Þ¤¹¡£ ¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥×¥ê¥ó¥¿¡¢¤ª¤è¤Ó (¤Þ¤¿¤Ï)¡¢ ¥×¥ê¥ó¥¿¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ËÉÕ°¤¹¤ë¥É¥­¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

ティップ: ¥Ò¥å¡¼¥ì¥Ã¥È¡¦¥Ñ¥Ã¥«¡¼¥É¼Ò¤Î Laserjet ¥·¥ê¡¼¥º¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ¥×¥ê¥ó¥¿Ì¾¤ò text ¤È¤¹¤ë¤È¡¢ ¼«Æ°Åª¤Ë LF ¤«¤é CRLF ¤Ø¤ÎÊÑ´¹¤¬¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£ ¤½¤Î¤¿¤á¡¢hpif ¥¹¥¯¥ê¥×¥È¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£

¼¡¤Ë¡¢ ¤½¤Î¥×¥ê¥ó¥¿¤Ë¥¢¥¯¥»¥¹¤·¤¿¤¤¤È»×¤Ã¤Æ¤¤¤ë¾¥Û¥¹¥È¤Ë¤ª¤¤¤Æ¡¢ ¤½¤Î¥Û¥¹¥È¤Î /etc/printcap ¥Õ¥¡¥¤¥ë¤Ë¼¡¤Ë¤¢¤²¤ë¥¨¥ó¥È¥ê¤òºî¤ê¤Þ¤¹¡£

  1. ̾Á°¤Î¥¨¥ó¥È¥ê¡£¤É¤ó¤Ê̾Á°¤Ç¤â¤è¤¤¤Î¤Ç¤¹¤¬¡¢´Êñ¤Î¤¿¤á¡¢Â¿Ê¬¡¢ ¥×¥ê¥ó¥¿¥Û¥¹¥È¤ÇÀßÄꤵ¤ì¤¿¥×¥ê¥ó¥¿Ì¾¤äÊÌ̾¤ÈƱ¤¸¤â¤Î¤ò»È¤¤¤¿¤¤¤È»×¤¦¤Ç¤·¤ç¤¦¡£

  2. lp ¹àÌܤǻØÄꤵ¤ì¤ë¥Ç¥Ð¥¤¥¹¤ÏÌÀ¼¨Åª¤Ë¶õ¤Ë¤·¤Þ¤¹ (:lp=: ¤È¤·¤Þ¤¹)¡£

  3. ¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤·¡¢ sd ¹àÌܤǤ½¤Î°ÌÃÖ¤ò»ØÄꤷ¤Þ¤¹¡£ LPD ¤Ç¤Ï¡¢¥×¥ê¥ó¥¿¥Û¥¹¥È¤Ë¥¸¥ç¥Ö¤òÁ÷¿®¤¹¤ë¤Þ¤Ç¤Î´Ö¡¢ ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¸¥ç¥Ö¤ò³ÊǼ¤·¤Þ¤¹¡£

  4. rm ¹àÌܤǥץê¥ó¥¿¥Û¥¹¥È¤Î̾Á°¤ò»ØÄꤷ¤Þ¤¹¡£

  5. rp ¹àÌÜ¤Ç ¥×¥ê¥ó¥¿¥Û¥¹¥È¤ËÀܳ¤·¤¿¥×¥ê¥ó¥¿Ì¾¤ò»ØÄꤷ¤Þ¤¹¡£

¤³¤ì¤Ç½ª¤ï¤ê¤Ç¤¹¡£ ÊÑ´¹¥Õ¥£¥ë¥¿¤ä¥Ú¡¼¥¸¤ÎÂ礭¤µ¤ä¤½¤Î¾¤Î»ö¹à¤ò /etc/printcap ¤Ë²Ã¤¨¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

¼¡¤Ë¡¢ ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¤Ç°õ»ú¤¹¤ë¤¿¤á¤ÎÀßÄêÎã¤ò¼¨¤·¤Þ¤¹¡£ ¥Û¥¹¥È rose ¤Ë¤Ï 2 Âæ¤Î¥×¥ê¥ó¥¿ bamboo ¤È rattan ¤¬Àܳ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Î¥×¥ê¥ó¥¿¤ò¥Û¥¹¥È orchid ¤Î¥æ¡¼¥¶¤¬»È¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£ºÇ½é¤Ë orchid ¤Î /etc/printcap ¤ò¼¨¤·¤Þ¤¹ (¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¡Ö ¥Ø¥Ã¥À¥Ú¡¼¥¸¤Î½ÐÎϤòµö²Ä¤¹¤ë¡× ¤Ç»²¾È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹)¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢´û¤Ë¡¢¥×¥ê¥ó¥¿ teak ÍѤΥ¨¥ó¥È¥ê¤¬¤¢¤ê¤Þ¤·¤¿¡£°Ê²¼¤Ç¤Ï¡¢ ¤³¤ì¤Ë¡¢¥Û¥¹¥È rose ¤Ë¤¢¤ë2Âæ¤Î¥×¥ê¥ó¥¿ÍѤΥ¨¥ó¥È¥ê¤¬²Ã¤¨¤é¤ì¤Æ¤¤¤Þ¤¹¡£

#
#  /etc/printcap for host orchid - added (remote) printers on rose
#

#
#  teak is local; it is connected directly to orchid:
#
teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
        :lp=/dev/lpt0:sd=/var/spool/lpd/teak:mx#0:\
        :if=/usr/local/libexec/ifhp:\
        :vf=/usr/local/libexec/vfhp:\
        :of=/usr/local/libexec/ofhp:

#
#  rattan is connected to rose; send jobs for rattan to rose:
#
rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :lp=:rm=rose:rp=rattan:sd=/var/spool/lpd/rattan:

#
#  bamboo is connected to rose as well:
#
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :lp=:rm=rose:rp=bamboo:sd=/var/spool/lpd/bamboo:

orchid ¤ÇɬÍפȤʤëºî¶È¤Ï¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òºî¤ë¤³¤È¤À¤±¤Ç¤¹¡£

# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chown daemon:daemon /var/spool/lpd/rattan /var/spool/lpd/bamboo

¤³¤ì¤Ç¡¢orchid ¤Î¥æ¡¼¥¶¤¬ rattan ¤È bamboo ¤Ç°õ»ú¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ ¤¿¤È¤¨¤Ð¡¢orchid ¤Î¥æ¡¼¥¶¤¬¼¡¤Î¤è¤¦¤ËÆþÎϤ·¤¿¤È¤·¤Þ¤¹¡£

% lpr -P bamboo -d sushi-review.dvi

¤¹¤ë¤È¡¢orchid ¤Î LPD ¥·¥¹¥Æ¥à¤Ï¡¢ ¥¸¥ç¥Ö¤ò¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê /var/spool/lpd/bamboo ¤Ë¥³¥Ô¡¼¤·¡¢¤³¤ì¤¬ DVI ¥Õ¥¡¥¤¥ë¤ò°õ»ú¤¹¤ë¥¸¥ç¥Ö¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Þ¤¹¡£ ¥Û¥¹¥È rose ¤Î bamboo ¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ë½½Ê¬¤ÊÍÆÎ̤¬³ÎÊݤǤ­¼¡Âè¡¢ ξ¼Ô¤Î LPD ¤Ï¡¢¥¸¥ç¥Ö¤Î¥Õ¥¡¥¤¥ë¤ò rose ¤ËžÁ÷¤·¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¤½¤Î¤¹¤Ù¤Æ¤¬°õ»ú¤µ¤ì¤ë¤Þ¤Ç¡¢rose ¤Î¥­¥å¡¼¤Ëα¤Þ¤ê¤Þ¤¹¡£ (bamboo ¤Ï PostScript ¥×¥ê¥ó¥¿¤Ê¤Î¤Ç) DVI ¤«¤é PostScript ¤Ø¤ÎÊÑ´¹¤Ï rose ¤Ç¤ª¤³¤Ê¤ï¤ì¤Þ¤¹¡£

10.4.3.2. ¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¤ª¤±¤ë¥Ç¡¼¥¿¥¹¥È¥ê¡¼¥à¤Î ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ý¤Ä¥×¥ê¥ó¥¿

¥×¥ê¥ó¥¿¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥«¡¼¥É¤Ï¡¢ 2 ¼ïÎà¤ËʬÎह¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ 1 ¤Ä¤Ï¥¹¥×¡¼¥é¤ò¥¨¥ß¥å¥ì¡¼¥È¤¹¤ë¤â¤Î (¹â²Á) ¤Ç¡¢¤â¤¦ 1 ¤Ä¤Ï¥·¥ê¥¢¥ë¤ä¥Ñ¥é¥ì¥ë¥Ý¡¼¥È¤ò»È¤¦¤è¤¦¤Ë ¥×¥ê¥ó¥¿¤Ë¥Ç¡¼¥¿¤òÁ÷¤ë¤³¤È¤¬¤Ç¤­¤ë¤À¤±¤Î¤â¤Î (°Â²Á) ¤Ç¤¹¡£¤³¤ÎÀá¤Ç¤Ï¡¢ ¸å¼Ô¤Î»È¤¤Êý¤òÀâÌÀ¤·¤Þ¤¹¡£Á°¼Ô¤Î¥×¥ê¥ó¥¿¤Ï¡¢Á°Àá¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¡× ¤ÎÊýË¡¤¬Å¬ÍѤǤ­¤Þ¤¹¡£

/etc/printcap ¥Õ¥¡¥¤¥ë¤Ç¤Ï¡¢ ¥·¥ê¥¢¥ë¤«¥Ñ¥é¥ì¥ë¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¤É¤Á¤é¤ò»È¤¦¤Î¤«¡¢ ¤½¤·¤Æ¡¢(¥·¥ê¥¢¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»È¤¦¾ì¹ç) ¤½¤Î¥Ü¡¼¥ì¡¼¥È¤Ï¤¤¤¯¤é¤Ç¤¢¤ë¤«¡¢¥Õ¥í¡¼À©¸æ¤Ï»È¤¦¤Î¤«¡¢ ¥¿¥Ö¤Î¤¿¤á¤ÎÃÙ±ä¤ò²Ã¤¨¤ë¤Î¤«¡¢ ²þ¹Ôʸ»ú¤òÊÑ´¹¤¹¤ë¤«¤Ê¤É¤Î»ØÄê¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤·¤«¤·¡¢TCP/IP ¤ä¾¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥Ý¡¼¥È¤«¤é¥Ç¡¼¥¿¤ò¼õ¤±¼è¤ë¥×¥ê¥ó¥¿¤ò Àܳ¤¹¤ë¤¿¤á¤Î»ØÄê¤ò¤ª¤³¤Ê¤¦¤³¤È¤Ï¤Ç¤­ ¤Þ¤»¤ó¡£

¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¤Ë¥Ç¡¼¥¿¤òÁ÷¤ë¤¿¤á¤Ë¤Ï¡¢ ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤ÈÊÑ´¹¥Õ¥£¥ë¥¿¤«¤é¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤ë ÄÌ¿®¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤Ë¡¢ ¤½¤Î¤è¤¦¤Ê¥×¥í¥°¥é¥à¤ÎÎã¤ò¼¨¤·¤Þ¤¹¡£¥¹¥¯¥ê¥×¥È netprint ¤Ç¤Ï¡¢ ɸ½àÆþÎϤ«¤é°õ»ú¥Ç¡¼¥¿¤ò¤¹¤Ù¤Æ¼õ¤±¼è¤ê¡¢ ¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¤Ë¤³¤ì¤òÁ÷¤ê¤Þ¤¹¡£ netprint ¤ÎºÇ½é¤Î°ú¿ô¤Ç¥×¥ê¥ó¥¿¤Î¥Û¥¹¥È̾¤ò¡¢ 2 ÈÖÌܤΰú¿ô¤ÇÀܳ¤¹¤ë¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄꤷ¤Þ¤¹¡£ ¤³¤Î¥×¥í¥°¥é¥à¤Ç¤ÏñÊý¸þÄÌ¿® (FreeBSD ¤«¤é¥×¥ê¥ó¥¿) ¤Î¤ß¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥ê¥ó¥¿¤Î¿¤¯¤ÏÁÐÊý¸þÄÌ¿®¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢ ¤½¤Î²¸·Ã (¥×¥ê¥ó¥¿¤Î¾õÂÖ¤òÆÀ¤¿¤ê¡¢ ²Ý¶â¤ò¤ª¤³¤Ê¤¦¤Ê¤É) ¤Ë¤¢¤º¤«¤ê¤¿¤¤¤È»×¤ï¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

#!/usr/bin/perl
#
#  netprint - Text filter for printer attached to network
#  Installed in /usr/local/libexec/netprint
#

$#ARGV eq 1 || die "Usage: $0 <printer-hostname> <port-number>";

$printer_host = $ARGV[0];
$printer_port = $ARGV[1];

require 'sys/socket.ph';

($ignore, $ignore, $protocol) = getprotobyname('tcp');
($ignore, $ignore, $ignore, $ignore, $address)
    = gethostbyname($printer_host);

$sockaddr = pack('S n a4 x8', &AF_INET, $printer_port, $address);

socket(PRINTER, &PF_INET, &SOCK_STREAM, $protocol)
    || die "Can't create TCP/IP stream socket: $!";
connect(PRINTER, $sockaddr) || die "Can't contact $printer_host: $!";
while (<STDIN>) { print PRINTER; }
exit 0;

¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢ ÍÍ¡¹¤Ê¥Õ¥£¥ë¥¿¤¬ÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£²¾¤Ë¡¢Diablo 750-N ¥é¥¤¥ó¥×¥ê¥ó¥¿¤ò»ý¤Ã¤Æ¤ª¤ê¡¢ ¤³¤ì¤¬¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Þ¤·¤ç¤¦¡£ ¥×¥ê¥ó¥¿¤Ï¥Ý¡¼¥ÈÈÖ¹æ 5100 ¤Ë¤Æ°õ»ú¤¹¤ë¥Ç¡¼¥¿¤ò¼õ¤±¼è¤ê¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Î¥Û¥¹¥È̾¤Ï scrivener ¤È¤·¤Þ¤¹¡£¤³¤Î¤È¤­¡¢ ¤³¤Î¥×¥ê¥ó¥¿¤Î¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

#!/bin/sh
#
#  diablo-if-net - Text filter for Diablo printer `scrivener' listening
#  on port 5100.  Installed in /usr/local/libexec/diablo-if-net
#

exec /usr/libexec/lpr/lpf "$@" | /usr/local/libexec/netprint scrivener 5100

10.4.4. ¥×¥ê¥ó¥¿¤ÎÍøÍѤËÀ©Ìó¤òÍ¿¤¨¤ë

ËÜÀá¤Ç¤Ï¡¢¥×¥ê¥ó¥¿¤ÎÍøÍѤËÀ©Ìó¤òÍ¿¤¨¤ë¤¿¤á¤Î¾ðÊó¤òµ­¤·¤Æ¤¤¤Þ¤¹¡£ LPD ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥×¥ê¥ó¥¿ (¥í¡¼¥«¥ë¡¢ ¥ê¥â¡¼¥È¤Î¤¤¤º¤ì¤ËÀܳ¤µ¤ì¤Æ¤¤¤Æ¤â) ¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤ë¿Í¤òÀ©¸Â¤¹¤ëµ¡Ç½¡¢ Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤Î²ÄÈݤòÀ©¸æ¤¹¤ëµ¡Ç½¡¢ ¥¸¥ç¥Ö¤Î¥µ¥¤¥º¤ÎºÇÂçÃͤä¥×¥ê¥ó¥¿¥­¥å¡¼¤ËÆþ¤ë ¥¸¥ç¥Ö¤ÎºÇÂç¸Ä¿ô¤òÀ©¸æ¤¹¤ëµ¡Ç½¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£

10.4.4.1. Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤òÀ©¸Â¤¹¤ë

LPD ¥·¥¹¥Æ¥à¤Ç¤Ï¥æ¡¼¥¶¤¬Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤ò´Êñ¤Ë¤ª¤³¤Ê¤¦ µ¡Ç½¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£¥æ¡¼¥¶¤¬¡¢(¤¿¤È¤¨¤Ð) lpr -#5 ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥¸¥ç¥Ö¤ò°õ»ú¤¹¤ë¤È¡¢ ¥¸¥ç¥Ö¤Î¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤ò 5 ÉôÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤ì¤¬¤è¤¤µ¡Ç½¤Ç¤¢¤ë¤È»×¤¦¤«¤É¤¦¤«¤Ï¿Í¤½¤ì¤¾¤ì¤Ç¤·¤ç¤¦¡£

Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤Ë¤è¤Ã¤Æ¥×¥ê¥ó¥¿¤¬ ɬÍװʾå¤Ë¾ÃÌפ·¤Æ¤·¤Þ¤¦¤È´¶¤¸¤ë¤Ê¤é¤Ð¡¢ /etc/printcap ¥Õ¥¡¥¤¥ë¤Ë sc ¹àÌܤò²Ã¤¨¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ë¤è¤ê¡¢ lpr(1) ¤Î -# ¥ª¥×¥·¥ç¥ó¤Î»ÈÍѤ¬¶Ø»ß¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤Ë¤â´Ø¤é¤º¡¢ -# ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢ ¼¡¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¡¢ ¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÍøÍѤǤ­¤Ê¤¤»Ý¤òÅÁ¤¨¤Þ¤¹¡£

lpr: multiple copies are not allowed

¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¥×¥ê¥ó¥¿¤ò¥¢¥¯¥»¥¹¤Ç¤­¤ë ÀßÄê¤Ë¤·¤Æ¤¤¤ë¾ì¹ç (¤³¤Î ÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¡× ¤ò¤´Í÷¤¯¤À¤µ¤¤)¡¢¤½¤Î¥ê¥â¡¼¥È¥Û¥¹¥È¤Î /etc/printcap ¤Ë¤âƱ¤¸¤è¤¦¤Ë sc ¹àÌܤòÄɲ乤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤¦¤·¤Ê¤¤¤È¡¢¥æ¡¼¥¶¤ÏÊ̤ʥۥ¹¥È¤«¤éÊ£¿ôÉô¤Î¥³¥Ô¡¼¤Î °õ»ú¤ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

Îã¤ò»È¤Ã¤ÆÀâÌÀ¤·¤Þ¤·¤ç¤¦¡£¼¡¤Ë¼¨¤¹ /etc/printcap ¥Õ¥¡¥¤¥ë¤Ï¡¢¥Û¥¹¥È rose ¤Î¤â¤Î¤Ç¤¹¡£¥×¥ê¥ó¥¿ rattan ¤Ï¶Ë¤á¤Æ´è¾æ¤Ê¤Î¤Ç¡¢ Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢ ¥ì¡¼¥¶¥×¥ê¥ó¥¿¤Î bamboo ¤Ï¤â¤¦¾¯¤·¥Ç¥ê¥±¡¼¥È¤Ç¡¢ ¤³¤Î¥×¥ê¥ó¥¿¤«¤éÊ£¿ôÉô¤Î¥³¥Ô¡¼¤ò°õ»ú¤¹¤ë¤³¤È¤ò sc ¹àÌܤòÄɲ乤뤳¤È¤Ç¶Ø»ß¤·¤Æ¤¤¤Þ¤¹¡£

#
#  /etc/printcap for host rose - restrict multiple copies on bamboo
#
rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :sh:sd=/var/spool/lpd/rattan:\
        :lp=/dev/lpt0:\
        :if=/usr/local/libexec/if-simple:

bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :sh:sd=/var/spool/lpd/bamboo:sc:\
        :lp=/dev/ttyu5:ms#-parenb cs8 clocal crtscts:rw:\
        :if=/usr/local/libexec/psif:\
        :df=/usr/local/libexec/psdf:

¤µ¤é¤Ë¡¢orchid ¤Î /etc/printcap ¤Ë¤â

sc

¹àÌܤòÄɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹ (orchid ¤Ç¤³¤ÎÊÔ½¸¤ò¤ª¤³¤Ê¤Ã¤Æ¤¤¤ë¤È¤­¤Ë¡¢¤Ä¤¤¤Ç¤Ë¡¢¥×¥ê¥ó¥¿ teak ¤Ç¤âÊ£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤ò¶Ø»ß¤¹¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦)¡£

#
#  /etc/printcap for host orchid - no multiple copies for local
#  printer teak or remote printer bamboo

teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
        :lp=/dev/lpt0:sd=/var/spool/lpd/teak:mx#0:sc:\
        :if=/usr/local/libexec/ifhp:\
        :vf=/usr/local/libexec/vfhp:\
        :of=/usr/local/libexec/ofhp:

rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :lp=:rm=rose:rp=rattan:sd=/var/spool/lpd/rattan:

bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :lp=:rm=rose:rp=bamboo:sd=/var/spool/lpd/bamboo:sc:

sc ¹àÌܤò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤ê¡¢ lpr -# ¤Î»ÈÍѤòËɤ°¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤Î¾õÂÖ¤Ç¤Ï lpr(1) ¤òÊ£¿ô²óµ¯Æ°¤·¤¿¤ê¡¢ 1 ²ó¤Î¥¸¥ç¥Ö¤Ç¼¡¤Î¤è¤¦¤ËƱ¤¸¥Õ¥¡¥¤¥ë¤òÊ£¿ô¸Ä»ØÄꤹ¤ë¤³¤È¤òËɤ°¤Þ¤Ç¤Ë¤Ï»ê¤Ã¤Æ¤¤¤Þ¤»¤ó¡£

% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign

¤³¤Î¤è¤¦¤Ê°­ÍѤòËɤ°ÊýË¡¤Ï (¤½¤Î»Ø¼¨¤ò̵»ë¤¹¤ë¤³¤È¤â´Þ¤á¤Æ) ¤¿¤¯¤µ¤ó¤¢¤ê¤Þ¤¹¡£ ³Æ¼«¤ÇÄ´¤Ù¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

10.4.4.2. ¥×¥ê¥ó¥¿¤ò»ÈÍѤǤ­¤ë¿Í¤ò¸ÂÄꤹ¤ë

¤½¤ì¤¾¤ì¤Î¥×¥ê¥ó¥¿¤ò»ÈÍѤǤ­¤ë¿Í¤ò¸ÂÄꤹ¤ë¤Ë¤Ï¡¢UNIX® ¤Î ¥°¥ë¡¼¥×¸¢¸Â¤Î¥á¥«¥Ë¥º¥à¤òÍøÍѤ·¡¢¤µ¤é¤Ë¡¢ /etc/printcap ¤Ç rg ¹àÌܤò»ØÄꤹ¤ë¤³¤È¤Ç¤ª¤³¤Ê¤¤¤Þ¤¹¡£ ¤¢¤ë¥×¥ê¥ó¥¿¤Ë¥¢¥¯¥»¥¹¤µ¤»¤Æ¤â¤è¤¤¤È»×¤¦¥æ¡¼¥¶¤¹¤Ù¤Æ¤ò ¥°¥ë¡¼¥×¤Î¤É¤ì¤«¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£¤½¤·¤Æ¡¢ ¤½¤Î¥°¥ë¡¼¥×̾¤ò rg ¤Ç»ØÄꤷ¤Þ¤¹¡£

¤³¤Î¤È¤­¡¢¤½¤Î¥°¥ë¡¼¥×¤Ë´Þ¤Þ¤ì¤Ê¤¤¥æ¡¼¥¶ (root ¤â´Þ¤ß¤Þ¤¹) ¤¬¥×¥ê¥ó¥È¤·¤è¤¦¤È¤¹¤ë¤È¡¢¼¡¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

lpr: Not a member of the restricted group

sc (suppress multiple copies : Ê£¿ôÉô¤Î¥³¥Ô¡¼¤Î°õ»ú¤ò¶Ø»ß¤¹¤ë) ¤ò»ØÄꤹ¤ë¤È¤­¤ÈƱÍͤˡ¢rg ¤¬»ØÄꤵ¤ì¤¿¥×¥ê¥ó¥¿¤¬¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤â¥¢¥¯¥»¥¹¤Ç¤­ (¤³¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¡× ¤ò¤´Í÷¤¯¤À¤µ¤¤)¡¢¤«¤Ä¡¢ ¤½¤Î¥Û¥¹¥È¤Ç¤â¥×¥ê¥ó¥¿¤ò»ÈÍѤǤ­¤ë¿Í¤ò¸ÂÄꤹ¤ë¤Î¤¬ ÂÅÅö¤Ç¤¢¤ë¤È»×¤¦¾ì¹ç¤Ï¡¢ ¤½¤Î¥Û¥¹¥È¤Î /etc/printcap ¤Ë¤â rg »ØÄê¤ò¤ª¤³¤Ê¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£

¤¿¤È¤¨¤Ð¡¢¥×¥ê¥ó¥¿ rattan ¤Ïï¤Ç¤âÍøÍѤǤ­¤ë¤¬¡¢bamboo ¤Ï¥°¥ë¡¼¥× artists ¤Ë°¤·¤Æ¤¤¤ë¿Í¤Î¤ß¤¬ÍøÍѤǤ­¤ë¤è¤¦¤Ë¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£ °Ê²¼¤Ë¡¢¤â¤¦¤ªÆëÀ÷¤ß¤È¤Ê¤Ã¤¿¥Û¥¹¥È rose ¤Î /etc/printcap ¤ò¼¨¤·¤Þ¤¹¡£

#
#  /etc/printcap for host rose - restricted group for bamboo
#
rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :sh:sd=/var/spool/lpd/rattan:\
        :lp=/dev/lpt0:\
        :if=/usr/local/libexec/if-simple:

bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\
        :lp=/dev/ttyu5:ms#-parenb cs8 clocal crtscts:rw:\
        :if=/usr/local/libexec/psif:\
        :df=/usr/local/libexec/psdf:

¤³¤ì°Ê³°¤Î /etc/printcap ¥Õ¥¡¥¤¥ë (¥Û¥¹¥È orchid ¤Î¤â¤Î) ¤Ï¤½¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¯¤³¤È¤Ë¤·¤Þ¤¹¡£¤â¤Á¤í¤ó¡¢ orchid ¤Î¥æ¡¼¥¶¤ÏÁ´°÷ bamboo ¤òÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢ orchid ¤Ë¤ÏÆÃÄê¤Î¥æ¡¼¥¶¤Î¤ß¤Ë¤·¤«¥¢¥¯¥»¥¹¤µ¤»¤Æ¤ª¤é¤º¡¢ ¤½¤Î¥æ¡¼¥¶¤Ë¤Ï¥×¥ê¥ó¥¿¤òÍøÍѤµ¤»¤¿¤¤¤È»×¤Ã¤Æ¤¤¤ë¤«¤é¤Ê¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢ ¤½¤¦¤Ç¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

注意: 1Âæ¤Î¥×¥ê¥ó¥¿¤òÊ£¿ô¥°¥ë¡¼¥×¤Î¥æ¡¼¥¶¤ËÍøÍѤµ¤»¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

10.4.4.3. ÆþÎϲÄǽ¤Ê¥¸¥ç¥Ö¤Î¥µ¥¤¥º¤òÀ©¸Â¤¹¤ë

¤¿¤¯¤µ¤ó¤Î¥æ¡¼¥¶¤«¤é¥×¥ê¥ó¥¿¤¬ÍøÍѤµ¤ì¤ë¾ì¹ç¤Ë¤Ï¡¢Â¿Ê¬¡¢ ¥æ¡¼¥¶¤¬°õ»úÍ×µá¤ò½Ð¤¹¤³¤È¤¬¤Ç¤­¤ë¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤Ë ¾å¸ÂÃͤòÃÖ¤¯É¬Íפ¬À¸¤¸¤ë¤Ç¤·¤ç¤¦¡£·ë¶É¤Î¤È¤³¤í¡¢ ¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê ¤¬ÃÖ¤«¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¶õ¤­ÍÆÎ̤¬¤½¤Î ¾å¸ÂÃͤˤʤëÌõ¤Ç¤¹¤¬¡¢ ¤¢¤ë¥æ¡¼¥¶¤¬¤³¤ì¤òÆÈÀêŪ¤Ë»ÈÍѤ¹¤ë¤³¤ÈÈò¤±¤ë¤¿¤á¤Ë¡¢ ¾¥æ¡¼¥¶¤«¤é¤Î¥¸¥ç¥ÖÍѤζõ¤­ÍÆÎ̤ò³ÎÊݤ¹¤ëɬÍפ⤢¤ê¤Þ¤¹¡£

LPD ¤Ç¤Ï¡¢mx ¹àÌܤò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤ê¡¢ ¥¸¥ç¥ÖÃæ¤Î¸Ä¡¹¤Î¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤Î¾å¸ÂÃͤòÀ©¸Â¤¹¤ëµ¡Ç½¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£ »ØÄꤵ¤ì¤ë ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤Îñ°Ì¤Ï BUFSIZ ¥Ö¥í¥Ã¥¯¤Ç¡¢1 BUFSIZ ¥Ö¥í¥Ã¥¯¤Ï 1024¥Ð¥¤¥È¤òɽ¤ï¤·¤Þ¤¹¡£¤³¤Î mx ¹àÌܤÎÃͤȤ·¤Æ 0 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢ ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ÎÀ©¸Â¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£ mx ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢ ¥Ç¥Õ¥©¥ë¥È¤ÎÀ©¸Â¤È¤·¤Æ 1000 ¥Ö¥í¥Ã¥¯¤¬»È¤ï¤ì¤Þ¤¹¡£

注意: ¤³¤ÎÀ©¸Â¤Ï¥¸¥ç¥ÖÃæ¤Î³Æ ¥Õ¥¡¥¤¥ë¤ËÂФ·¤ÆŬÍѤµ¤ì¤ë¤â¤Î¤Ç¤¢¤ê¡¢ ¥¸¥ç¥ÖÁ´ÂΤΥµ¥¤¥º ¤òÀ©¸Â¤¹¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

¤È¤³¤í¤Ç¡¢ ¥×¥ê¥ó¥¿¤ËÀßÄꤵ¤ì¤¿¾å¸ÂÃͤòĶ¤¨¤ë¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤Î ¥Õ¥¡¥¤¥ë¤¬ÆþÎϤµ¤ì¤¿¾ì¹ç¤Ç¤â¡¢LPD ¤Ï¤³¤ì¤òµñÈݤ·¤Þ¤»¤ó¡£¤½¤ÎÂå¤ï¤ê¤Ë¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢ ¤½¤ÎÀèƬ¤«¤é¾å¸ÂÃͤΥե¡¥¤¥ë¥µ¥¤¥º¤Þ¤Ç¤·¤«¥­¥å¡¼¤ËÆþ¤ì¤é¤ì¤Þ¤»¤ó¡£ ¤½¤·¤Æ¡¢¤½¤ÎÉôʬ¤Þ¤Ç¤¬°õ»ú¤µ¤ì¡¢ »Ä¤ê¤ÎÉôʬ¤Ï¼Î¤Æ¤é¤ì¤Þ¤¹¡£ ¤³¤ì¤¬Àµ¤·¤¤Æ°ºî¤È¤¤¤¨¤ë¤Î¤«¤É¤¦¤«¤ÏµÄÏÀ¤Î;ÃϤ¬¤¢¤ë¤È¤³¤í¤Ç¤¹¡£

¤½¤ì¤Ç¤Ï¡¢ÀßÄêÎã¤ËÅо줷¤Æ¤¤¤ë¥×¥ê¥ó¥¿ rattan ¤È bamboo ¤Î°õ»ú²Äǽ¤Ê¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ËÀ©¸Â¤ò²Ã¤¨¤Æ¤ß¤Þ¤·¤ç¤¦¡£ artists ¥°¥ë¡¼¥×¤Î¿Í㤬ºî¤ë PostScript ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤Ï µðÂç¤Ë¤Ê¤ë·¹¸þ¤¬¤¢¤ë¤Î¤Ç¡¢¾å¸ÂÃͤò 5M ¥Ð¥¤¥È¤È¤·¤Þ¤¹¡£ ¤½¤ì¤«¤é¡¢ ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥ÈÍѤΥ饤¥ó¥×¥ê¥ó¥¿¤Ï̵À©¸Â¤È¤·¤Þ¤¹¡£

#
#  /etc/printcap for host rose
#

#
#  No limit on job size:
#
rattan|line|diablo|lp|Diablo 630 Line Printer:\
        :sh:mx#0:sd=/var/spool/lpd/rattan:\
        :lp=/dev/lpt0:\
        :if=/usr/local/libexec/if-simple:

#
#  Limit of five megabytes:
#
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
        :lp=/dev/ttyu5:ms#-parenb cs8 clocal crtscts:rw:\
        :if=/usr/local/libexec/psif:\
        :df=/usr/local/libexec/psdf:

¤³¤Î¾ì¹ç¤â¤½¤¦¤Ç¤¹¤¬¡¢¤³¤ÎÀ©¸Â¤Ï¥í¡¼¥«¥ë (¥Û¥¹¥È rose) ¤Î¥æ¡¼¥¶¤Î¤ß¤ËŬÍѤµ¤ì¤Þ¤¹¡£ ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¥×¥ê¥ó¥¿¤òÍøÍѤǤ­¤ë¤è¤¦¤ËÀßÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ¤½¤Î¥ê¥â¡¼¥È¥Û¥¹¥È¤Î¥æ¡¼¥¶¤Ï¤³¤ÎÀ©¸Â¤ò¼õ¤±¤Þ¤»¤ó¡£ ¤³¤ì¤é¤Î¥æ¡¼¥¶¤Ë¤âÀ©¸Â¤ò²Ã¤¨¤ë¾ì¹ç¤Ï¡¢¥ê¥â¡¼¥È¥Û¥¹¥È¤Î /etc/printcap ¤Î mx ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é°õ»ú¤¹¤ë¤¿¤á¤Î¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¡× ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿¤Ø¤Î¥¸¥ç¥Ö¤Î ¥µ¥¤¥º¤òÀ©¸Â¤¹¤ëÆÃÊ̤ÊÊýË¡¤Ï¾¤Ë¤â¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¡Ö ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤ÎÍøÍѤòÀ©¸Â¤¹¤ë¡× ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

10.4.4.4. ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤ÎÍøÍѤòÀ©¸Â¤¹¤ë

LPD ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ ¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤éÍ׵ᤵ¤ì¤¿¥¸¥ç¥Ö¤Î°õ»ú¤òÀ©¸Â¤¹¤ë¤¿¤á¤ÎÊýË¡¤¬¤¤¤¯¤Ä¤«Ä󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¥Û¥¹¥È¤ÎÀ©¸Â

¥í¡¼¥«¥ë¤Î LPD ¤¬°õ»úÍ×µá¤ò¼õ¤±ÉÕ¤±¤ë¥ê¥â¡¼¥È¥Û¥¹¥È¤Ï¡¢¥Õ¥¡¥¤¥ë /etc/hosts.equiv ¤È /etc/hosts.lpd ¤Ë¤è¤Ã¤ÆÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£LPD ¤Ç¤Ï¡¢¤¢¤ë¥Û¥¹¥È¤«¤é°õ»ú¤ÎÍ׵᤬¤­¤¿¤È¤­¡¢ ¤³¤Î¥Û¥¹¥È¤Î̾Á°¤¬¤³¤ì¤é 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤Î¤É¤Á¤é¤«¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë ¤«¤É¤¦¤«¤òÄ´¤Ù¤Þ¤¹¡£¤³¤ì¤¬´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢LPD ¤Ï¤³¤ÎÍ×µá¤òµñÈݤ·¤Þ¤¹¡£

¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î·Á¼°¤Ïñ½ã¤Ç¤¹¡£ ³Æ¹Ô¤Ë¥Û¥¹¥È¤Î̾Á°¤ò 1¤Ä¤º¤Ä½ñ¤¤¤Æ¤¤¤­¤Þ¤¹¡£¥Õ¥¡¥¤¥ë /etc/hosts.equiv ¤ÎÊý¤Ï ruserok(3) ¥×¥í¥È¥³¥ë¤Ç¤âÍøÍѤµ¤ì¡¢ rsh(1) ¤ä rcp(1) ¤È¤¤¤Ã¤¿¥×¥í¥°¥é¥à¤ÎÆ°ºî¤Ë±Æ¶Á¤¹¤ë¤Î¤ÇÃí°Õ¤¬É¬ÍפǤ¹¡£ /etc/hosts.equiv ¤Îµ­½Ò¤Ï¿µ½Å¤Ë¤ª¤³¤Ê¤¤¤Þ¤·¤ç¤¦¡£

Îã¤È¤·¤Æ¡¢°Ê²¼¤Ë¥Û¥¹¥È rose ¤Î /etc/hosts.lpd ¤ò¼¨¤·¤Þ¤¹¡£

orchid
violet
madrigal.fishbaum.de

¤³¤ÎÎã¤Ç¤Ï¡¢rose ¤Ï¥Û¥¹¥È orchid, violet ¤½¤·¤Æ madrigal.fishbaum.de ¤«¤é¤ÎÍ×µá¤ò¼õ¤±ÉÕ¤±¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤½¤Î¾¤Î¥Û¥¹¥È¤¬ rose ¤Î LPD ¤Ë¥¢¥¯¥»¥¹¤·¤è¤¦¤È¤·¤Æ¤â¡¢ LPD ¤Ï¤½¤Î¥¸¥ç¥Ö¤òµñÈݤ·¤Þ¤¹ (ÌõÃí: µñÈݤµ¤ì¤ë¤Î¤Ï¡¢¤½¤Î¥Û¥¹¥È¤¬ /etc/hosts.equiv ¤Ë¤â´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤¹)¡£

¥µ¥¤¥º¤ÎÀ©¸Â

¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤¬¤¢¤ë ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë»Ä¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë ¶õ¤­ÍÆÎ̤ÎÂ礭¤µ¤òÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥í¡¼¥«¥ë¥×¥ê¥ó¥¿ÍѤΥ¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ë minfree ¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢ ¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤Î¥¸¥ç¥Ö¤Î Í×µá¤ò¼õ¤±ÉÕ¤±¤ë¤¿¤á¤ËɬÍפʶõ¤­ÍÆÎ̤Υǥ£¥¹¥¯¥Ö¥í¥Ã¥¯¥µ¥¤¥º (1 ¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯ = 512 ¥Ð¥¤¥È) ¤òµ­¤·¤Þ¤¹¡£

¤³¤ì¤Ç¡¢ ¥ê¥â¡¼¥È¥Û¥¹¥È¤Î¥æ¡¼¥¶¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òËþÇդˤµ¤ì¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì¤Þ¤¹¡£ ¤³¤Îµ¡Ç½¤ò»È¤¦¤È¡¢ ¥í¡¼¥«¥ë¥Û¥¹¥È¤Î¥æ¡¼¥¶¤ËÂФ·¤Æ¤¢¤ë¼ï¤ÎÍ¥À踢¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ ¥í¡¼¥«¥ë¥Û¥¹¥È¤Î¥æ¡¼¥¶¤Ï¡¢ minfree ¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿Ãͤè¤ê¤â¥Ç¥£¥¹¥¯¤Î¶õ¤­ÍÆÎ̤¬²¼²ó¤Ã¤¿¸å¤Ç¤â¤º¤Ã¤È¡¢ ¥¸¥ç¥Ö¤ò¥­¥å¡¼¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤ë¤Î¤Ç¤¹¡£

¤¿¤È¤¨¤Ð¡¢¥×¥ê¥ó¥¿ bamboo ÍѤΠminfree ¤òºî¤Ã¤Æ¤ß¤Þ¤·¤ç¤¦¡£ ¤³¤Î¥×¥ê¥ó¥¿¤Î¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òÄ´¤Ù¤ë¤¿¤á¤Ë¡¢ /etc/printcap ¤òÄ´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£ °Ê²¼¤Ë¡¢bamboo ¤Î¥¨¥ó¥È¥êÉôʬ¤ò¼¨¤·¤Þ¤¹¡£

bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
        :lp=/dev/ttyu5:ms#-parenb cs8 clocal crtscts:rw:mx#5000:\
        :if=/usr/local/libexec/psif:\
        :df=/usr/local/libexec/psdf:

¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ï sd ¹àÌܤǻØÄꤵ¤ì¤Þ¤¹¡£LPD ¤¬¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤Î¥¸¥ç¥Ö¤ò¼õ¤±ÉÕ¤±¤ë¤¿¤á¤ËɬÍ×¤Ê ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¶õ¤­ÍÆÎ̤ò 3M ¥Ð¥¤¥È (= 6144 ¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯) ¤Ë¤¹¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£

# echo 6144 > /var/spool/lpd/bamboo/minfree
             
ÍøÍѥ桼¥¶¤ÎÀ©¸Â

/etc/printcap ¤Î rs ¹àÌܤò»ØÄꤹ¤ë¤³¤È¤Ç¡¢ ¥í¡¼¥«¥ë¥×¥ê¥ó¥¿¤òÍøÍѤǤ­¤ë¥ê¥â¡¼¥È¥Û¥¹¥È¤Î¥æ¡¼¥¶¤òÀ©¸Â¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥í¡¼¥«¥ë¥Û¥¹¥È¤ËÀܳ¤µ¤ì¤¿¥×¥ê¥ó¥¿ÍѤΥ¨¥ó¥È¥ê¤Ë rs ¹àÌܤ¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ LPD ¤Ï¡¢°õ»ú¤òÍ׵ᤷ¤¿¥æ¡¼¥¶¤Î¥¢¥«¥¦¥ó¥È¤ÈƱ¤¸¥í¥°¥¤¥ó̾¤¬ ¥í¡¼¥«¥ë¥Û¥¹¥È¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¸Â¤ê¡¢ ¤½¤Î¥¸¥ç¥Ö¤ò¼õ¤±ÉÕ¤±¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¥¸¥ç¥Ö¤ò LPD ¤ÏµñÈݤ·¤Þ¤¹¡£

¤³¤Îµ¡Ç½¤Ï¡¢(¤¿¤È¤¨¤Ð) Ê£¿ô¤ÎÉô½ð¤¬¥Í¥Ã¥È¥ï¡¼¥¯¤ò¶¦Í­¤·¤Æ¤ª¤ê¡¢ ¤³¤ÎÆâ¤Î¤¢¤ë¥æ¡¼¥¶¤¬Éô½ð¤Î¶­³¦¤ò±Û¤¨¤Æ³èÆ°¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤ÏÆäËÍ­ÍѤǤ¹¡£ ¤½¤Î¤è¤¦¤Ê¥æ¡¼¥¶¤ËÂФ·¤Æ¡¢¥·¥¹¥Æ¥à¤Î¥¢¥«¥¦¥ó¥È¤òÍ¿¤¨¤ë¤À¤±¤Ç¡¢ ¤³¤ì¤é¤Î¥æ¡¼¥¶¤Ï¼«Ê¬¤¬½ê°¤¹¤ëÉô½ð¤Î¥·¥¹¥Æ¥à¤«¤é ¤½¤Î¥·¥¹¥Æ¥à¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥¿¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥æ¡¼¥¶¤Ë¤Ï¤à¤·¤í¡¢ ¥×¥ê¥ó¥¿¤Î»ÈÍѤÀ¤±¤òǧ¤á¡¢ ¤½¤Î¾¤Î¥³¥ó¥Ô¥å¡¼¥¿»ñ¸»¤òÍøÍѤµ¤»¤¿¤¯¤Ê¤¤¤È¤­¤Ï¡¢ ¤½¤ì¤é¤Î¥æ¡¼¥¶¤Ë¤Ï¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òÍ¿¤¨¤º¡¢ ¥í¥°¥¤¥ó¥·¥§¥ë¤Ï¥·¥§¥ë¤È¤·¤Æ¤Ï²¿¤ÎÌò¤Ë¤âΩ¤¿¤Ê¤¤ /usr/bin/false ¤Ê¤É¤ò»ØÄꤷ¤Æ¡¢ ¤³¤ì¤é¤Î¥æ¡¼¥¶¤Î¥¢¥«¥¦¥ó¥È¤Ï¥×¥ê¥ó¥¿ÍѤΠ“·Á¼°Åª¤Ê” ¤â¤Î¤È¤·¤Þ¤¹¡£

10.4.5. ¥×¥ê¥ó¥¿¤ÎÍøÍѤËÂФ¹¤ë²Ý¶â

¤È¤¤¤¦Ìõ¤Ç¡¢°õ»ú¤¹¤ë¤¿¤á¤Ë¤ÏÎÁ¶â¤ò¤È¤ë¤³¤È¤¬É¬ÍפǤ¹¡£ ¼è¤é¤Ê¤¤Íýͳ¤Ê¤É¤¢¤ê¤Þ¤·¤ç¤¦¤«¡£»æ¤ä¥¤¥ó¥¯¤Ë¤Ï¤ª¶â¤¬¤«¤«¤ê¤Þ¤¹¡£ ¤½¤·¤Æ¡¢¥×¥ê¥ó¥¿¤Î°Ý»ýÈñ¤â¤«¤«¤ê¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤Ë¤Ï²ÄÆ°Éôʬ¤¬ÅëºÜ¤µ¤ì¤Æ¤ª¤ê¡¢ ¤³¤ì¤é¤ÎÉôʬ¤Ï²õ¤ì¤ä¤¹¤¤¤È¤¤¤¦·¹¸þ¤¬¤¢¤ê¤Þ¤¹¡£ ¥×¥ê¥ó¥¿¤ä¡¢¤½¤ÎÍøÍÑ·ÁÂÖ¡¢°Ý»ýÈñ¤Ë¤Ä¤¤¤ÆÄ´ºº¤ò¤·¡¢1 ¥Ú¡¼¥¸ (1 ¥Õ¥£¡¼¥È¡¢1 ¥á¡¼¥È¥ë¤Ê¤É) Åö¤¿¤ê¤Ë¤«¤«¤ë¥³¥¹¥È¤òÄ´¤Ù¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ë´ð¤Å¤­¡¢¥×¥ê¥ó¥¿¤ÎÍøÍѤËÂФ¹¤ë²Ý¶â¤ò¡¢¼ÂºÝ¤Ë¡¢ ¤É¤Î¤è¤¦¤Ë»Ï¤á¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

¤µ¤Æ¡¢»ÄÇ°¤Ê¤¬¤é¡¢¤³¤ÎÉôʬ¤Ë´Ø¤·¤Æ¤Ï LPD ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ï¤Û¤È¤ó¤ÉÌò¤ËΩ¤Á¤Þ¤»¤ó¡£ ²Ý¶â¤Ï»ÈÍѤ·¤Æ¤¤¤ë¥×¥ê¥ó¥¿¤Î¼ïÎà¡¢°õ»ú¤¹¤ë¤â¤Î¤Î¥Õ¥¡¥¤¥ë¤Î·Á¼°¡¢ ¥×¥ê¥ó¥¿¤ÎÍøÍѤËÂФ¹¤ë²Ý¶â¤Ç¤Î ¤¢¤Ê¤¿¼«¿È¤ÎÍ×µá¤ËÂ礭¤¯º¸±¦¤µ¤ì¤Þ¤¹¡£

²Ý¶â¥·¥¹¥Æ¥à¤ò¼Â¸½¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¥×¥ê¥ó¥¿¤Î¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ (¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¥¸¥ç¥Ö¤ËÂФ·¤Æ²Ý¶â¤¹¤ë¤¿¤á) ¤ÈÊÑ´¹¥Õ¥£¥ë¥¿ (¤½¤Î¾¤Î¥Õ¥¡¥¤¥ë·Á¼°¤ËÂФ·¤Æ²Ý¶â¤¹¤ë¤¿¤á) ¤òÊѹ¹¤·¤Æ¡¢ °õ»ú¤·¤¿¥Ú¡¼¥¸¤ò¿ô¤¨¤¿¤ê¡¢ ¥×¥ê¥ó¥¿¤Ë°õ»ú¤·¤¿¥Ú¡¼¥¸¿ô¤ò¼èÆÀ¤¹¤ë¤¿¤á¤ÎÍ×µá¤òÁ÷¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤¿¤À¤·¡¢½ÐÎÏ¥Õ¥£¥ë¥¿¤Î¤ß¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ²Ý¶â¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£¥Õ¥£¥ë¥¿¤Ë´Ø¤·¤Æ¤Ï¡¢ ¡Ö ¥Õ¥£¥ë¥¿¡×¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

°ìÈ̤ˡ¢²Ý¶âÊý¼°¤Ë¤Ï¼¡¤Î 2 ¤Ä¤¬¤¢¤ê¤Þ¤¹¡£

LPD ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ ¤É¤Á¤é¤ÎÊý¼°¤Ë¤â´Êñ¤ËÂбþ¤Ç¤­¤Þ¤¹¡£(¤Û¤È¤ó¤É¤Î¾ì¹ç¤Ï) ¥Õ¥£¥ë¥¿¤òÍÑ°Õ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Î¤Ç¡¢ ²Ý¶âºî¶È¤Î¤¿¤á¤Î¥³¡¼¥É¤âÍÑ°Õ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¤·¤«¤·¡¢ÌÀ¤ë¤¤Ì̤⤢¤ê¤Þ¤¹¡£ ¤½¤ì¤Ï¡¢²Ý¶âÊý¼°¤Ë´Ø¤·¤Æ¡¢Èó¾ï¤ËÂ礭¤Ê½ÀÆðÀ­¤¬Í¿¤¨¤é¤ì¤¿¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¡ÖÄê´üŪ¤Ë²Ý¶â¤¹¤ëÊýË¡¡×¤«¡¢ ¡ÖÍøÍÑËè¤Ë²Ý¶â¤¹¤ëÊýË¡¡×¤Î¤É¤Á¤é¤«¤òÁª¤Ó¤Þ¤º¡¢¤½¤·¤Æ¡¢ ¤É¤ó¤Ê¾ðÊó (¥æ¡¼¥¶Ì¾¡¢¥Û¥¹¥È̾¡¢¥¸¥ç¥Ö¤Î¥¿¥¤¥×¡¢°õ»ú¤µ¤ì¤¿ÊÇ¿ô¡¢ »ÈÍѤ·¤¿»æ¤ÎÂ礭¤µ¡¢°õ»ú¤ò¤¹¤ë¤¿¤á¤ËÍפ·¤¿»þ´Ö¤Ê¤É) ¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¤«¤ò·è¤á¤Þ¤¹¡£ °Ê¾å¤Î¤³¤È¤ò¤ª¤³¤Ê¤¦¤Ë¤Ï¡¢¾åµ­¤Î¾ðÊó¤òÊÝ»ý¤¹¤ë¤¿¤á¤Ë¡¢ ¥Õ¥£¥ë¥¿¤òÊѹ¹¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

10.4.5.1. ¼ê·Ú¤Ê¥×¥ê¥ó¥¿²Ý¶âÊýË¡

FreeBSD ¤Ë¤Ï¡¢¡ÖÄê´üŪ¤Ë²Ý¶â¤¹¤ëÊýË¡¡×¤Ë¤è¤ë²Ý¶â¤ò ¤¹¤°¤ËÀßÄê¤Ç¤­¤ë¤è¤¦¤Ë¡¢2 ¸Ä¤Î¥×¥í¥°¥é¥à¤òźÉÕ¤·¤Æ¤¤¤Þ¤¹¡£ ¤½¤ÎÆâ¤Î1¤Ä¤Ï¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ lpf ¤Ç¡¢ ¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ lpf¡×¤ò¤´Í÷¤¯¤À¤µ¤¤¡£¤â¤¦1¤Ä¤Ï¡¢ pac(8) ¤Ç¡¢ ¤³¤ì¤Ï¥×¥ê¥ó¥¿¤Î²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¥¨¥ó¥È¥ê¤ò½¸¤á¡¢ ¤³¤ì¤ò¹ç·×¤¹¤ë¥×¥í¥°¥é¥à¤Ç¤¹¡£

¡Ö ¥Õ¥£¥ë¥¿¤Ï¤É¤Î¤è¤¦¤Ëµ¡Ç½¤·¤Æ¤¤¤ë¤«¡×¤Ç½Ò¤Ù¤¿¤è¤¦¤Ë¡¢ LPD ¤Ç¤Ï¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿¤äÊÑ´¹¥Õ¥£¥ë¥¿¤òµ¯Æ°¤·¤Þ¤¹¤¬¡¢ ¤½¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ÈÍѤ·¤Æ¤¤¤ë²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î̾Á°¤¬»ØÄꤵ¤ì¤Þ¤¹¡£ ξ¥Õ¥£¥ë¥¿¤Ï¤³¤Î°ú¿ô¤ò»È¤Ã¤Æ¡¢ ¤É¤Î²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¤Ë½ñ¤­¹þ¤á¤Ð¤è¤¤¤Î¤«¤òÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï /etc/printcap Ãæ¤Î af ¹àÌܤˤè¤Ã¤Æ»ØÄꤵ¤ì¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤¬ÀäÂÐ¥Ñ ¥¹¤Ç»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢ ¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£

LPD ¤Ï¡¢»æ¤Î¥Ú¡¼¥¸¤ÎÉý¤È¹Ô¿ô (pw ¤È pl ¹àÌÜ¤Ç »ØÄꤵ¤ì¤ë) ¤ò°ú¿ô¤È¤·¤Æ lpf ¤òµ¯Æ°¤·¤Þ¤¹¡£lpf ¥Õ¥£¥ë¥¿¤Ç¤Ï¡¢ ²¿¥Ú¡¼¥¸°õ»ú¤·¤¿¤«¤ò·èÄꤹ¤ë¤¿¤á¤Ë¤³¤ì¤é¤Î°ú¿ô¤ò»ÈÍѤ·¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¤ò¥×¥ê¥ó¥¿¤ËÁ÷¤Ã¤¿¸å¡¢ ²Ý¶â¾ðÊó¤ò²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤ß¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

2.00 rose:andy
3.00 rose:kelly
3.00 orchid:mary
5.00 orchid:mary
2.00 orchid:zhang

²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¥×¥ê¥ó¥¿Ëè¤Ëʬ¤±¤Æºî¤ë¤Ù¤­¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢lpf ¤Ë¤Ï¥Õ¥¡¥¤¥ë¤ò¥í¥Ã¥¯¤¹¤ëµ¡¹½¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤Ç¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢lpf ¤¬ 2 ¤Äµ¯Æ°¤µ¤ì¤¿¤È¤­¡¢ Ʊ¤¸¥Õ¥¡¥¤¥ë¤ËƱ»þ¤Ë½ñ¤­¹þ¤ß¤ò¤ª¤³¤Ê¤Ã¤¿¾ì¹ç¡¢ ¤ª¸ß¤¤¤Î¥¨¥ó¥È¥ê¤òÇ˲õ¤·¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ²Ý¶âÍÑ¥Õ¥¡¥¤¥ë¤ò³Æ¥×¥ê¥ó¥¿Ëè¤Ë³Î¼Â¤Ëʬ¤±¤ë¤Ë¤Ï¡¢ /etc/printcap Ãæ¤Î af=acct ¹àÌܤò»È¤¤¤Þ¤¹¡£ ¤½¤¦¤¹¤ì¤Ð¡¢¤½¤ì¤¾¤ì¤Î²Ý¶âÍÑ¥Õ¥¡¥¤¥ë¤¬¥×¥ê¥ó¥¿¤Î¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ë¡¢ acct ¤È¤¤¤¦Ì¾¾Î¤ÇºîÀ®¤µ¤ì¤Þ¤¹¡£

¥×¥ê¥ó¥¿¤ÎÍøÍѤËÂФ·¤Æ¥æ¡¼¥¶¤Ë²Ý¶â¤¹¤ë½àÈ÷¤¬¤Ç¤­¤¿¤é¡¢ pac(8) ¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤ (²Ý¶â¤·¤¿¤¤¥×¥ê¥ó¥¿¤Î¥¹¥×¡¼¥ê¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤·¤¿¸å¡¢ pac ¤ÈÆþÎϤ·¤Æ¤¯¤À¤µ¤¤)¡£ ¼¡¤Î¤è¤¦¤Ê¡¢¥É¥ëÃæ¿´¼çµÁ¤Î²Ý¶â¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹ (ÌõÃí: ¥É¥ëÃæ¿´¼çµÁ¤È¤¤¤¦É½¸½¤Ï¡¢ ɽ¼¨¤¬¥É¥ë¤Ç½Ð¤ë¤³¤È¤Ø¤ÎÃø¼Ô¤ÎÈéÆù¤Ç¤·¤ç¤¦¡£ ¥»¥ó¥È¤¬¤¢¤ë¤Î¤Ç¾®¿ôÅÀ°Ê²¼¤¬É½¼¨¤µ¤ì¤Þ¤¹¤¬¡¢ ¤³¤Îµ¡Ç½¤âÆüËܤǤϼÙËâ¤Ç¤¹¤Í)¡£

  Login               pages/feet   runs    price
orchid:kelly                5.00    1   $  0.10
orchid:mary                31.00    3   $  0.62
orchid:zhang                9.00    1   $  0.18
rose:andy                   2.00    1   $  0.04
rose:kelly                177.00  104   $  3.54
rose:mary                  87.00   32   $  1.74
rose:root                  26.00   12   $  0.52

total                     337.00  154   $  6.74

pac(8) ¤¬¼õ¤±ÉÕ¤±¤ë°ú¿ô¤Ë¤Ï¼¡¤Î¤è¤¦¤Ê¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£

-Pprinter

¥×¥ê¥ó¥¿ printer ¤ÎÍøÍѤËÂФ¹¤ë²Ý¶â¥ê¥¹¥È¤òºîÀ®¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢/etc/printcap ¤Î af ¤¬ÀäÂХѥ¹¤Ç»ØÄꤵ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¸Â¤ê¡¢Æ°ºî¤·¤Þ¤¹¡£

-c

¥æ¡¼¥¶Ì¾¤Î¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ç¤Ï¤Ê¤¯¡¢ ²Ý¶â³Û¤ÎÄ㤤½ç¤Ë¥ê¥¹¥È¤òʤ٤ޤ¹¡£

-m

²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤¢¤ë¥Û¥¹¥È̾¤ò̵»ë¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë¤È¡¢¥Û¥¹¥È alpha ¤Î¥æ¡¼¥¶ smith ¤È¥Û¥¹¥È gamma ¤Î¥æ¡¼¥¶ smith ¤ÏƱ°ì¿Íʪ¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢ ξ¼Ô¤ÏÊ̤ʥ桼¥¶¤È¤·¤Æ°·¤¤¤Þ¤¹¡£

-pprice

/etc/printcap ¤Î pc ¹àÌܤǻØÄꤵ¤ì¤¿ÃÍ¡¢¤Þ¤¿¤Ï¡¢ ¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ (2 ¥»¥ó¥È) ¤ËÂå¤ï¤ê¡¢»æ1¥Ú¡¼¥¸¡¢¤Þ¤¿¤Ï¡¢ 1¥Õ¥£¡¼¥ÈÅö¤¿¤ê¤Î²Á³Ê¤ò»ØÄꤷ¤Þ¤¹¡£ price ¤È¤·¤Æ¡¢ ÉâÆ°¾®¿ôÅÀ¿ô¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

-r

¥ê¥¹¥È¤Îʤ٤ë½çÈÖ¤òµÕ½ç¤Ë¤·¤Þ¤¹¡£

-s

²Ý¶â¥ê¥¹¥È¤òºîÀ®¤·¡¢ ²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Þ¤¹¡£

name

¥æ¡¼¥¶ names ¤ËÂФ¹¤ë²Ý¶â¾ðÊó¤Î¤ß¤òɽ¼¨¤·¤Þ¤¹¡£

pac(8) ¤¬À¸À®¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥¹¥È¤Ë¤Ï¡¢ ³Æ¥Û¥¹¥È¤Î¥æ¡¼¥¶Ê̤˰õ»ú¥Ú¡¼¥¸¿ô¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ (¥æ¡¼¥¶¤¬¥µ¥¤¥ÈÆâ¤Î¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¤ò»ÈÍѤǤ­¤ë¤¿¤á) ¥Û¥¹¥È̾¤Î¾ðÊ󤬰ÕÌ£¤ò»ý¤¿¤Ê¤¤¾ì¹ç¡¢ pac -m ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£¼¡¤Î¤è¤¦¤Ê¥ê¥¹¥È¤¬ÆÀ¤é¤ì¤Þ¤¹¡£

  Login               pages/feet   runs    price
andy                        2.00    1   $  0.04
kelly                     182.00  105   $  3.64
mary                      118.00   35   $  2.36
root                       26.00   12   $  0.52
zhang                       9.00    1   $  0.18

total                     337.00  154   $  6.74

²Ý¶â³Û¤ò·è¤á¤ë¤¿¤á¤Ë¡¢ pac(8) ¤Ï /etc/printcap ¥Õ¥¡¥¤¥ë¤Î pc ¹àÌܤǻØÄꤵ¤ì¤¿ÃÍ (¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï 200¡¢¤¹¤Ê¤ï¤Á 1 ¥Ú¡¼¥¸Åö¤¿¤ê 2 ¥»¥ó¥È) ¤ò»È¤¤¤Þ¤¹¡£¤³¤Î¹àÌܤǡ¢°õ»úʪ¤Ë²Ý¶â¤·¤¿¤¤ ¥Õ¥¡¤È»×¤¦ 1 ¥Ú¡¼¥¸Åö¤¿¤ê¡¢ ¤Þ¤¿¤Ï¡¢1 ¥Õ¥£¡¼¥ÈÅö¤¿¤ê¤Î²Á³Ê¤ò 100 ʬ¤Î 1 ¥»¥ó¥Èñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£ pac(8) ¤ò -p ¥ª¥×¥·¥ç¥óÉÕ¤­¤Çµ¯Æ°¤¹¤ë¤È¡¢ ¤³¤ÎÃͤòÃÖ¤­´¹¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î -p ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë³Û¤Îñ°Ì¤Ï¡¢ 100 ʬ¤Î 1 ¥»¥ó¥Èñ°Ì¤Ç¤Ï¤Ê¤¯¡¢¥É¥ëñ°Ì¤Ç¤¹¡£¤¿¤È¤¨¤Ð¡¢¼¡¤Î»ØÄê¤Ç¤Ï¡¢ 1 ¥Ú¡¼¥¸Åö¤¿¤ê¤Îñ²Á¤¬ 1 ¥É¥ë 50 ¥»¥ó¥È¤Ë¤Ê¤ê¤Þ¤¹¡£

# pac -p1.50

¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢ ¼ÂºÝ¤Î²Ý¶â³Û¤ò½¸·×¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

ºÇ¸å¤Ë¡¢pac -s ¤òµ¯Æ°¤¹¤ë¤È¡¢²Ý¶â¾ðÊó¤Ï²Ý¶â¥Ç¡¼¥¿Îß·×¥Õ¥¡¥¤¥ë¤ËÊݸ¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¡¢¥×¥ê¥ó¥¿¤Î²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¸å¤í¤Ë _sum ¤òÉÕ¤±¤¿¤â¤Î¤È¤Ê¤ê¤Þ¤¹¡£¤½¤·¤Æ¡¢ ²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ïºï½ü¤µ¤ì¤Þ¤¹¡£¼¡¤Ë pac(8) ¤¬µ¯Æ°¤µ¤ì¤ë¤È¡¢ ¤½¤Î»þÅÀ¤Þ¤Ç¤ÎÎ߷׶â³Û¤òÆÀ¤ë¤¿¤á¤Ë¡¢ ²Ý¶â¥Ç¡¼¥¿Îß·×¥Õ¥¡¥¤¥ë¤¬Æɤ߹þ¤Þ¤ì¡¢ Ä̾ï¤Î²Ý¶â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¾ðÊó¤Ë²Ã»»¤µ¤ì¤Þ¤¹¡£

10.4.5.2. °õ»ú¤µ¤ì¤¿¥Ú¡¼¥¸¿ô¤ò¤É¤Î¤è¤¦¤Ë¿ô¤¨¤ë¤«?

²Ý¶â¤ò¡¢¥ê¥â¡¼¥È¥Û¥¹¥È¤«¤é¤Î°õ»ú¤Ç¤µ¤¨¤â¡¢ Àµ³Î¤Ë¤ª¤³¤Ê¤¦¤¿¤á¤Ë¤Ï¡¢ ¥¸¥ç¥Ö¤Ç»ÈÍѤµ¤ì¤¿»æ¤¬²¿¥Ú¡¼¥¸¤Ç¤¢¤ë¤«¤òÆÃÄê¤Ç¤­¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¤³¤È¤Ï¡¢¥×¥ê¥ó¥¿ÍøÍѤËÂФ¹¤ë²Ý¶â¤ò¤ª¤³¤Ê¤¦¾å¤Îº¬ËÜŪ¤ÊÌäÂê¤Ç¤¹¡£

¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Î¥¸¥ç¥Ö¤Î¾ì¹ç¡¢ ÌäÂê¤ò²ò·è¤¹¤ë¤Î¤Ï¤µ¤Û¤ÉÆñ¤·¤¯¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¥¸¥ç¥Ö¤¬²¿¹Ô¤Ç¤¢¤Ã¤¿¤«¤ò¿ô¤¨¡¢¥×¥ê¥ó¥¿¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë»æ 1 ¥Ú¡¼¥¸¤Ë°õ»ú¤Ç¤­¤ëºÇÂç¤Î¹Ô¿ô¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¡£ ½Å¤ÍÂǤÁ¤¹¤ë¤¿¤á¤ËÍøÍѤµ¤ì¤ë¥Õ¥¡¥¤¥ëÃæ¤Î¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹Ê¸»ú¤ä¡¢ ʪÍýŪ¤ËÊ£¿ô¤Î¹Ô¤ËÅϤ덤ÏÀÍý¹Ô¤ËÂФ¹¤ë¼è¤ê°·¤¤¤ò˺¤ì¤º¤Ë¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤¡£

(¡Ö¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ lpf¡×¤Ç¾Ò²ð¤·¤¿) ¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿ lpf ¤Ç¤Ï¡¢²Ý¶â¤ò¤ª¤³¤Ê¤¦¤È¤­¤Ë¡¢ ¤³¤ì¤é¤Î¼è¤ê°·¤¤¤ò¤ª¤³¤Ê¤Ã¤Æ¤¯¤ì¤Þ¤¹¡£ ²Ý¶â¤ò¤ª¤³¤Ê¤¦¤¿¤á¤ËɬÍפʥƥ­¥¹¥È¥Õ¥£¥ë¥¿¤òºîÀ®¤·¤Æ¤¤¤ëÊý¤Ï¡¢ lpf ¤Î¥½¡¼¥¹¥³¡¼¥É¤¬»²¹Í¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

¤³¤ì¤ËÂФ·¤Æ¡¢Â¾¤Î¥Õ¥¡¥¤¥ë·Á¼°¤Î½èÍý¤Ï¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð ¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

¤Þ¤º¡¢DVI ¤«¤é LaserJet, ¤Þ¤¿¤Ï¡¢DVI ¤«¤é PostScript ¤Ø¤ÎÊÑ´¹¤Î¾ì¹ç¡¢¥Õ¥£¥ë¥¿¤¬ dvilj ¤ä dvips ¤Î ½ÐÎÏ¥á¥Ã¥»¡¼¥¸¤ò²òÀϤ¹¤ë¤³¤È¤Ç¡¢ ²¿¥Ú¡¼¥¸Ê¬¤ÎÊÑ´¹¤¬¤ª¤³¤Ê¤ï¤ì¤¿¤«¤òÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¾¤Î¥Õ¥¡¥¤¥ë·Á¼°¤È¤½¤ÎÊÑ´¹¥×¥í¥°¥é¥à¤Ë´Ø¤·¤Æ¤â¡¢ ƱÍͤΤ³¤È¤¬¤Ç¤­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¤·¤«¤·¡¢¤³¤ÎÊý¼°¤Ë¤ÏÌäÂêÅÀ¤¬¤¢¤ê¤Þ¤¹¡£¤½¤ì¤Ï¡¢ ÊÑ´¹¤µ¤ì¤¿¥Ú¡¼¥¸¤¬¤¹¤Ù¤Æ°õ»ú¤µ¤ì¤ë¤È¤Ï¸Â¤é¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¥×¥ê¥ó¥¿¤¬»æµÍ¤Þ¤ê¤òµ¯¤³¤·¤¿¤ê¡¢¥È¥Ê¡¼ÀÚ¤ì¤Ë¤Ê¤Ã¤¿¤ê¡¢ ¤Ï¤¿¤Þ¤¿¡¢Çúȯ¤·¤¿¤ê¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤½¤Î¤è¤¦¤Ê¾õ¶·¤Ë¤è¤ê°õ»ú¤¬ÅÓÃæ¤ÇÃæ»ß¤µ¤ì¤¿¤È¤·¤Æ¤â¡¢¤³¤ÎÊý¼°¤Ç¤Ï¡¢ ¥æ¡¼¥¶¤ÏÁ´¥Ú¡¼¥¸Ê¬¤ÎÎÁ¶â¤ò²Ý¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¡£

¤½¤ì¤Ç¤Ï¡¢¤É¤Î¤è¤¦¤ÊÂкö¤ò¤¿¤Æ¤ë¤³¤È¤¬¤Ç¤­¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

Àµ³Î¤Ê ²Ý¶â¤ò¤ª¤³¤Ê¤¦¤¿¤á¤ÎÍ£°ì¤Î³Î¼Â¤ÊÊýË¡¤Ï¡¢ ²¿¥Ú¡¼¥¸°õ»ú¤·¤¿¤Î¤«¤òÃΤ餻¤ë¤³¤È¤¬¤Ç¤­¤ë¥×¥ê¥ó¥¿¤òÆþ¼ê¤·¡¢ ¤³¤ì¤ò¥·¥ê¥¢¥ë¥Ý¡¼¥È¤«¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤¹¤ë¤³¤È¤Ç¤¹¡£ ¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î PostScript ¥×¥ê¥ó¥¿¤Ç¤Ï¤³¤Î³µÇ°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¾¤Î¥×¥ê¥ó¥¿¤âƱÍͤǤ¹ (Imagen ¥ì¡¼¥¶¥×¥ê¥ó¥¿¤ò¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤¹¤ë¤Ê¤É)¡£ ¤½¤ì¤¾¤ì¤Î¥×¥ê¥ó¥¿¤Î¥Õ¥£¥ë¥¿¤ò¡¢ ¥¸¥ç¥Ö¤ò°õ»ú¤·¤¿¸å¤Ç°õ»ú¥Ú¡¼¥¸¿ô¤òÆÀ¤ë¤è¤¦¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤·¤Æ¡¢²Ý¶â¾ðÊó¤Ï¤³¤³¤ÇÆÀ¤é¤ì¤¿ÃÍ¤Î¤ß¤Ë ´ð¤Å¤¤¤Æµ­Ï¿¤·¤Æ¤¯¤À¤µ¤¤¡£¹Ô¿ô¤ò¿ô¤¨¤¿¤ê¡¢ ¥¨¥é¡¼¤¬À¸¤¸¤ä¤¹¤¤¥Õ¥¡¥¤¥ë¤ÎÄ´ºº¤ÏɬÍפȤµ¤ì¤Þ¤»¤ó¡£

¤â¤Á¤í¤ó¡¢ µ¤Á°¤è¤¯°õ»úÎÁ¶â¤ò¤¹¤Ù¤Æ̵ÎÁ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£