<?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: Auto re-enable printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465879#M15712</link>
    <description>You could just remove the 'disable' command from your printer interface script and maybe replace it with some other command that could do some things for you. /etc/lp/interface/&lt;PRINTER&gt;&lt;/PRINTER&gt;</description>
    <pubDate>Mon, 20 Nov 2000 15:07:20 GMT</pubDate>
    <dc:creator>Lasse Knudsen</dc:creator>
    <dc:date>2000-11-20T15:07:20Z</dc:date>
    <item>
      <title>Auto re-enable printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465877#M15710</link>
      <description>On HP-UX 11, I have users who occasionally accidentally send a huge output job to an HP LaserJet printer, attached to the network with an HP JetDirect EX Plus print server.  If no operator is around, the user will cut off the printer to stop the output, and later they turn it back on.  The print job is gone, but the printer is no longer enabled on HP-UX and requires a command to re-enable the printer.  Is there a way that printers can auto re-enable themselves without using a cron job do it?  TIA.</description>
      <pubDate>Mon, 20 Nov 2000 14:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465877#M15710</guid>
      <dc:creator>Ed Hon</dc:creator>
      <dc:date>2000-11-20T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto re-enable printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465878#M15711</link>
      <description>You can use a simple script that runs in background like this:&lt;BR /&gt;&lt;BR /&gt;***************************************&lt;BR /&gt;#! /bin/ksh&lt;BR /&gt;&lt;BR /&gt;xx=0&lt;BR /&gt;while [ $xx -eq 0 ]&lt;BR /&gt; do&lt;BR /&gt;lpstat -p| grep disabled| awk '{fnd = 0} /^[A-Za-z] {fnd = 1&lt;BR /&gt;                        var = $0&lt;BR /&gt;                        print $0&lt;BR /&gt;                        next}&lt;BR /&gt;                        { if (fnd != 1 )&lt;BR /&gt;                        {print var ""$0}&lt;BR /&gt;                        }'| awk '{print $2}'| xargs enable&lt;BR /&gt;&lt;BR /&gt;sleep 600&lt;BR /&gt;  &lt;BR /&gt;done&lt;BR /&gt;******************************************&lt;BR /&gt;&lt;BR /&gt;This script will run in background and check every 600 seconds the disabled printers enabling them&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2000 15:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465878#M15711</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2000-11-20T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto re-enable printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465879#M15712</link>
      <description>You could just remove the 'disable' command from your printer interface script and maybe replace it with some other command that could do some things for you. /etc/lp/interface/&lt;PRINTER&gt;&lt;/PRINTER&gt;</description>
      <pubDate>Mon, 20 Nov 2000 15:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465879#M15712</guid>
      <dc:creator>Lasse Knudsen</dc:creator>
      <dc:date>2000-11-20T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Auto re-enable printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465880#M15713</link>
      <description>if you have configured your printer as a remote printer (not with jetadmin) you could go to /var/spool/lp/interface&lt;BR /&gt;and edit the printer interface script (same name as the printer queue) and comment the disable command at the near end of the script&lt;BR /&gt;&lt;BR /&gt;#disable -r"$reason" $printer</description>
      <pubDate>Mon, 20 Nov 2000 15:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-re-enable-printer/m-p/2465880#M15713</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-20T15:07:36Z</dc:date>
    </item>
  </channel>
</rss>

