<?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: Idea in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823807#M87148</link>
    <description>Sometimes is just easier to handle files than using commands which are doing almost the same. &lt;BR /&gt;For example to delete old spooler request we can use something like &lt;BR /&gt;&lt;BR /&gt;lpstat -i lp_name | grep ^lp.. | awk '{print $1}' | xargs cancel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but it is easier to delete the files from /var/spool/lp/requests/lp_name&lt;BR /&gt;&lt;BR /&gt;Any idea how to do it faster ?&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Fri, 11 Oct 2002 11:20:03 GMT</pubDate>
    <dc:creator>Tibi Baraboi_1</dc:creator>
    <dc:date>2002-10-11T11:20:03Z</dc:date>
    <item>
      <title>Idea</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823805#M87146</link>
      <description>Does anybody tried to move the files from /var/spool/lp/request/printer_old&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;/var/spool/lp/request/printer_new ?&lt;BR /&gt;&lt;BR /&gt;It should work.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 11 Oct 2002 10:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823805#M87146</guid>
      <dc:creator>Tibi Baraboi_1</dc:creator>
      <dc:date>2002-10-11T10:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Idea</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823806#M87147</link>
      <description>Thats why the 'lpalt' command was invented.&lt;BR /&gt;&lt;BR /&gt;I think you will find that there is also a definition file for the print job, held in another directory.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Fri, 11 Oct 2002 11:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823806#M87147</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2002-10-11T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Idea</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823807#M87148</link>
      <description>Sometimes is just easier to handle files than using commands which are doing almost the same. &lt;BR /&gt;For example to delete old spooler request we can use something like &lt;BR /&gt;&lt;BR /&gt;lpstat -i lp_name | grep ^lp.. | awk '{print $1}' | xargs cancel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but it is easier to delete the files from /var/spool/lp/requests/lp_name&lt;BR /&gt;&lt;BR /&gt;Any idea how to do it faster ?&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 11 Oct 2002 11:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823807#M87148</guid>
      <dc:creator>Tibi Baraboi_1</dc:creator>
      <dc:date>2002-10-11T11:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Idea</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823808#M87149</link>
      <description>Tibi,&lt;BR /&gt;&lt;BR /&gt;Create an alias for that command on your .profile called 'printerclear' or something.&lt;BR /&gt;&lt;BR /&gt;I have always tried to use the HP-UX commands rather than fiddle with the resultant files, as HP can conceivably change the way the system does things internally. Using the commands is a future-proof way of doing things (you will get an upgrade notification when the command changes, but not necessarily when the internals change).&lt;BR /&gt;&lt;BR /&gt;Why not automate the script to check for overdue printouts, cancel them over a certain period and email you the results? Do you have Openview?&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 11:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823808#M87149</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2002-10-11T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Idea</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823809#M87150</link>
      <description>You are right. &lt;BR /&gt;I will schedule a job to check all the jobs older that 2 days and to delete them.&lt;BR /&gt;It is the best way to keep the spoolers clean. &lt;BR /&gt;It was a mistake that I posted. I wanted to reply to one posted message but I am new and I created a new message instead :-). &lt;BR /&gt;Sorry...&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 11 Oct 2002 11:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idea/m-p/2823809#M87150</guid>
      <dc:creator>Tibi Baraboi_1</dc:creator>
      <dc:date>2002-10-11T11:46:43Z</dc:date>
    </item>
  </channel>
</rss>

