<?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 script to check print queue status in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868706#M398183</link>
    <description>I am new to this and am trying to figure out how to get a script to do an lpstat -t and give me an output of jobs older than 15 mins, then I am going to send it to an ipager. any help is greatly appreciated. THANKS&lt;BR /&gt;I've done some reading and gotten a few examples that I'm looking at to see if they will help me at all.</description>
    <pubDate>Wed, 03 Nov 2004 22:56:59 GMT</pubDate>
    <dc:creator>Tracy Force</dc:creator>
    <dc:date>2004-11-03T22:56:59Z</dc:date>
    <item>
      <title>script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868706#M398183</link>
      <description>I am new to this and am trying to figure out how to get a script to do an lpstat -t and give me an output of jobs older than 15 mins, then I am going to send it to an ipager. any help is greatly appreciated. THANKS&lt;BR /&gt;I've done some reading and gotten a few examples that I'm looking at to see if they will help me at all.</description>
      <pubDate>Wed, 03 Nov 2004 22:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868706#M398183</guid>
      <dc:creator>Tracy Force</dc:creator>
      <dc:date>2004-11-03T22:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868707#M398184</link>
      <description>I've attached small perl script that will print details of jobs that are older than 15 minutes.&lt;BR /&gt;&lt;BR /&gt;Output should be in the format&lt;BR /&gt;&lt;BR /&gt;Request &lt;PRINTER&gt;-&lt;REQUEST_ID&gt; owned by &lt;OWNER&gt; in the queue since &lt;MONTH&gt; &lt;DAY&gt; &lt;HOUR&gt;:&lt;MINUTE&gt; (&lt;SECONDS_IN_THE_QUEUE&gt;)&lt;/SECONDS_IN_THE_QUEUE&gt;&lt;/MINUTE&gt;&lt;/HOUR&gt;&lt;/DAY&gt;&lt;/MONTH&gt;&lt;/OWNER&gt;&lt;/REQUEST_ID&gt;&lt;/PRINTER&gt;</description>
      <pubDate>Wed, 03 Nov 2004 23:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868707#M398184</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-11-03T23:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868708#M398185</link>
      <description>great thanks.. I'll try it out and see what I get.&lt;BR /&gt;&lt;I hate="" bein="" a="" newbie="" at="" something="" again..=""&gt;&lt;BR /&gt;&lt;GRIN&gt;&lt;/GRIN&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 04 Nov 2004 12:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868708#M398185</guid>
      <dc:creator>Tracy Force</dc:creator>
      <dc:date>2004-11-04T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868709#M398186</link>
      <description>hmm.. it didn't work.. how can I convert to korn script?.. thanks</description>
      <pubDate>Thu, 04 Nov 2004 12:19:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868709#M398186</guid>
      <dc:creator>Tracy Force</dc:creator>
      <dc:date>2004-11-04T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868710#M398187</link>
      <description>Here is a script that I wrote to clear out&lt;BR /&gt;any print jobs older that 24 hours.&lt;BR /&gt;You may be able to modify or gleen something&lt;BR /&gt;from it.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Cancel stuck printer jobs over 24 hours old.&lt;BR /&gt;# Jerry Moore 3/29/04&lt;BR /&gt;&lt;BR /&gt;lpstat -o | grep priority | grep -v "`date | cut -c 5-10`" | awk '{print $1}'&amp;gt;/tmp/stkprjobs&lt;BR /&gt;for i in `cat /tmp/stkprjobs`;do&lt;BR /&gt;   cancel $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868710#M398187</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-11-04T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868711#M398188</link>
      <description>Hi Tracy,&lt;BR /&gt;&lt;BR /&gt;There is a couple of choices in this link for a similar forum post. you may have to do some modification to suit your individual needs,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=121243" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=121243&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868711#M398188</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-11-04T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: script to check print queue status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868712#M398189</link>
      <description>yeaaaaaaaaaaaaahaaaaw... y'all rock.. THANK YOU, now back to learning ..</description>
      <pubDate>Thu, 04 Nov 2004 16:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-print-queue-status/m-p/4868712#M398189</guid>
      <dc:creator>Tracy Force</dc:creator>
      <dc:date>2004-11-04T16:52:30Z</dc:date>
    </item>
  </channel>
</rss>

