<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: restrict print queue access when special forms loaded in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631839#M41471</link>
    <description>This type of printer control is common in mainframes and commercial opsystems like MPE, but alas, nothing like this in HP-UX.&lt;BR /&gt;&lt;BR /&gt;As mentioned, you can keep a special queue disabled all the time, then manually allow specific jobs to go through while inappropriate jobs are either deleted or transferrred to another printer. The deletion option does not require the spooler to be shutdown. It is real easy to always disable the queue: modify the printer script in the /etc/lp/interface directory (corresponding to the special forms printer) to always return a non-zero value.  Each print job will be com-pleted and the print queue immiediately disabled.</description>
    <pubDate>Tue, 18 Dec 2001 00:56:47 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2001-12-18T00:56:47Z</dc:date>
    <item>
      <title>restrict print queue access when special forms loaded</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631837#M41469</link>
      <description>Is there any way to restrict access to a HP-UX print queue when special forms are loaded?  Using fence only restricts by priority.  I would like to be able to allow any print jobs that need that special "form" paper, but queue any that need regular paper.  VMS has a way to do this but I've never seen a way with HP-UX.</description>
      <pubDate>Mon, 17 Dec 2001 22:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631837#M41469</guid>
      <dc:creator>Elizabeth Laughlin</dc:creator>
      <dc:date>2001-12-17T22:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: restrict print queue access when special forms loaded</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631838#M41470</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The only way I've seen this done in the past&lt;BR /&gt;is to set up a different print queue for the&lt;BR /&gt;different types of paper being used to print&lt;BR /&gt;to same printer. What we used to do, was to&lt;BR /&gt;have all the print queues related to this&lt;BR /&gt;one printer 'disabled'. Once the correct&lt;BR /&gt;paper has been inserted and aligned (assuming&lt;BR /&gt;a line printer) was the correct queue then&lt;BR /&gt;enabled to run. I'm not sure of any other&lt;BR /&gt;method.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 18 Dec 2001 00:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631838#M41470</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-12-18T00:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: restrict print queue access when special forms loaded</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631839#M41471</link>
      <description>This type of printer control is common in mainframes and commercial opsystems like MPE, but alas, nothing like this in HP-UX.&lt;BR /&gt;&lt;BR /&gt;As mentioned, you can keep a special queue disabled all the time, then manually allow specific jobs to go through while inappropriate jobs are either deleted or transferrred to another printer. The deletion option does not require the spooler to be shutdown. It is real easy to always disable the queue: modify the printer script in the /etc/lp/interface directory (corresponding to the special forms printer) to always return a non-zero value.  Each print job will be com-pleted and the print queue immiediately disabled.</description>
      <pubDate>Tue, 18 Dec 2001 00:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631839#M41471</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-12-18T00:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: restrict print queue access when special forms loaded</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631840#M41472</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can only think of a workaround, that is to wrap the lp binary ie.&lt;BR /&gt;&lt;BR /&gt;# cd /usr/bin&lt;BR /&gt;# cp -ip lp lp.bin&lt;BR /&gt;# vi lp&lt;BR /&gt;&lt;BR /&gt;lp will thus be a wrapping script for lp.bin. In this script, check the file to be printed. Insert your conditions for special forms to be printed on specific printer queues.&lt;BR /&gt;&lt;BR /&gt;Conditions can be anything from userids, printer queues, correct text (eg. pattern matches) in file to be printed.&lt;BR /&gt;&lt;BR /&gt;Stub would be something like this:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;if ... # conditions matched&lt;BR /&gt;then&lt;BR /&gt;  /usr/bin/lp.bin $*&lt;BR /&gt;else&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Tue, 18 Dec 2001 05:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-print-queue-access-when-special-forms-loaded/m-p/2631840#M41472</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-18T05:16:58Z</dc:date>
    </item>
  </channel>
</rss>

