<?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: Scripting help.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393868#M199544</link>
    <description>I had done a perl script for this purpose some time ago - found it. &lt;BR /&gt;&lt;BR /&gt;Attached&lt;BR /&gt;&lt;BR /&gt;Modify as required&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Oct 2004 14:26:00 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2004-10-05T14:26:00Z</dc:date>
    <item>
      <title>Scripting help....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393865#M199541</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a script, that will monitor the print queue.  I need a script that will check the print jobs, and any jobs that have been sitting in queue for longer than 30, the script notify me.  The notification part is easy and done....checking the print queue (lpstat -i -o) is easy and done.  But how can I compare the print job time to the current system time, and see if it is older than 30 minutes?&lt;BR /&gt;&lt;BR /&gt;Dwyane</description>
      <pubDate>Tue, 05 Oct 2004 14:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393865#M199541</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2004-10-05T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393866#M199542</link>
      <description>How about checking /var/spool/lp/request directory for this. you can delete the requests directly here. &lt;BR /&gt;&lt;BR /&gt;I do it like below. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find /var/spool/lp/request ! -name ".*" -type f -mtime +3 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Check for yorself about deleting 30Mins older files. &lt;BR /&gt;Hope this helps&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Tue, 05 Oct 2004 14:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393866#M199542</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-05T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393867#M199543</link>
      <description>Monitor /var/spool/lp/request directory.&lt;BR /&gt;&lt;BR /&gt;Submitted jobs noted in this dir and have a date/time stamp that you can use for comparison.&lt;BR /&gt;&lt;BR /&gt;The files will be named by the PRTDEV name.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2004 14:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393867#M199543</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-10-05T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393868#M199544</link>
      <description>I had done a perl script for this purpose some time ago - found it. &lt;BR /&gt;&lt;BR /&gt;Attached&lt;BR /&gt;&lt;BR /&gt;Modify as required&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2004 14:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393868#M199544</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-10-05T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393869#M199545</link>
      <description>Thank you much!!!!!&lt;BR /&gt;&lt;BR /&gt;I don't necessarily want to remove thse jobs.  This is going to be a way to notify me of printers that probably need some TLCWH (Tender loving care with a hammer!).  :)&lt;BR /&gt;&lt;BR /&gt;Actually, we have several serially connected line printers, and Web JetAdmin doesn't have the functionality to monitor them.  So, I had to get a little creative.  Once I have a functioning script, I will add the opcmsg function of OVOW...&lt;BR /&gt;&lt;BR /&gt;Thanks again!!!  Points well deserved!&lt;BR /&gt;Dwyane</description>
      <pubDate>Tue, 05 Oct 2004 14:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3393869#M199545</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2004-10-05T14:34:30Z</dc:date>
    </item>
  </channel>
</rss>

