<?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: Print queues in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097515#M146181</link>
    <description>We have used this script since 2000&lt;BR /&gt;The mail part was removed to prevent /usr mail from getting rm'd if 2 people used it at once.&lt;BR /&gt;&lt;BR /&gt;ErrSyntax()&lt;BR /&gt;{&lt;BR /&gt;        echo "SYNTAX ERROR:  cancelall printername"&lt;BR /&gt;        exit 1&lt;BR /&gt;}&lt;BR /&gt;if [ $# -ne 1 ];&lt;BR /&gt;then&lt;BR /&gt;   ErrSyntax&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;### attempt to stop cancel mail to root&lt;BR /&gt;## cp -p /usr/bin/mail /usr/bin/mail.save&lt;BR /&gt;## echo "exit 0" &amp;gt; /usr/bin/mail&lt;BR /&gt;&lt;BR /&gt;# &lt;CANCEL your="" jobs=""&gt;&lt;BR /&gt;#   RESTORE MAIL AT THE END OF SCRIPT&lt;BR /&gt;###&lt;BR /&gt;#DISABLE THE PRINTER&lt;BR /&gt;disable $1&lt;BR /&gt;#Stat the jobs to a file&lt;BR /&gt;lpstat -o$1|grep $1&amp;gt;/tmp/printjobs&lt;BR /&gt;#Cuts out the job&lt;BR /&gt;cut -d " " -f 1 /tmp/printjobs&amp;gt;/tmp/printjobs2&lt;BR /&gt;#ADD cancel to front of list&lt;BR /&gt;cat /tmp/printjobs2|sed 's/^/cancel.11.0  /'&amp;gt;/tmp/printmasscancel&lt;BR /&gt;chmod 777 /tmp/printmasscancel&lt;BR /&gt;/tmp/printmasscancel&lt;BR /&gt;#ENABLE THE PRINTER&lt;BR /&gt;enable $1&lt;BR /&gt;#CLEANUP&lt;BR /&gt;&lt;BR /&gt;### RESTORE MAIL AT THE END OF SCRIPT&lt;BR /&gt;### PUT mail command back&lt;BR /&gt;## cp -p /usr/bin/mail.save /usr/bin/mail&lt;BR /&gt;&lt;BR /&gt;rm /tmp/printjobs&lt;BR /&gt;rm /tmp/printjobs2&lt;BR /&gt;rm /tmp/printmasscancel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;### cancel.11.0 is the real cancel program&lt;BR /&gt;### our cancel command is a sript to fix a local application call.&lt;/CANCEL&gt;</description>
    <pubDate>Tue, 21 Oct 2003 07:33:49 GMT</pubDate>
    <dc:creator>Larry Basford</dc:creator>
    <dc:date>2003-10-21T07:33:49Z</dc:date>
    <item>
      <title>Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097508#M146174</link>
      <description>Can anyone help me in clearing print queues?</description>
      <pubDate>Mon, 20 Oct 2003 11:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097508#M146174</guid>
      <dc:creator>Ramesh_20</dc:creator>
      <dc:date>2003-10-20T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097509#M146175</link>
      <description>Try doing a man on "cancel".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 11:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097509#M146175</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-20T11:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097510#M146176</link>
      <description># lpstat -t (* list out jobs *)&lt;BR /&gt; &lt;BR /&gt;# cancel job# &lt;BR /&gt; &lt;BR /&gt;Alternatively:&lt;BR /&gt; &lt;BR /&gt;cd /var/spoo/lp&lt;BR /&gt;ls FIFO, SCHEDLOCK&lt;BR /&gt;lpstat -r (* lp daemon running? *)&lt;BR /&gt;lpshut&lt;BR /&gt;rm FIFO, SCHEDLOCK, outputq, #lock&lt;BR /&gt;&amp;gt;outputq&lt;BR /&gt;&amp;gt;log&lt;BR /&gt;ps -ef | grep -i lp&lt;BR /&gt;kill -9 (* pid from ps -ef *)&lt;BR /&gt;lpsched -v&lt;BR /&gt;more log&lt;BR /&gt;lp -d printer</description>
      <pubDate>Mon, 20 Oct 2003 11:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097510#M146176</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-10-20T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097511#M146177</link>
      <description>Use "lpstast" command for display lpname and numberqueue and "cancel" command for clear.&lt;BR /&gt;#lpstat -t &lt;BR /&gt;#cancel lpname-numberqueue&lt;BR /&gt;Bruno</description>
      <pubDate>Mon, 20 Oct 2003 11:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097511#M146177</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-10-20T11:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097512#M146178</link>
      <description>To cancel any job, I would suggest to first stop the scheduler.  As root do:&lt;BR /&gt;&lt;BR /&gt;# lpshut&lt;BR /&gt;# lpstat -t&lt;BR /&gt;# cancel "queue_name-job#"&lt;BR /&gt;&lt;BR /&gt;You must cancel each job until it's finally cleared.  Then:&lt;BR /&gt;&lt;BR /&gt;# lpsched&lt;BR /&gt;&lt;BR /&gt;This way you ensure no new print jobs are sent to the server while you are cleaning it up.&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Mon, 20 Oct 2003 11:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097512#M146178</guid>
      <dc:creator>E. Wong</dc:creator>
      <dc:date>2003-10-20T11:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097513#M146179</link>
      <description>configure a printer with device of /dev/null.&lt;BR /&gt;&lt;BR /&gt;When you get aprinter full of clutter, you can lpmove jobs to it to dispose of them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 12:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097513#M146179</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-10-20T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097514#M146180</link>
      <description>also try the &lt;BR /&gt;cancel -e &lt;QUEUE&gt;&lt;BR /&gt;&lt;BR /&gt;That will delete all jobs on a queue.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;/QUEUE&gt;</description>
      <pubDate>Mon, 20 Oct 2003 18:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097514#M146180</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-10-20T18:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print queues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097515#M146181</link>
      <description>We have used this script since 2000&lt;BR /&gt;The mail part was removed to prevent /usr mail from getting rm'd if 2 people used it at once.&lt;BR /&gt;&lt;BR /&gt;ErrSyntax()&lt;BR /&gt;{&lt;BR /&gt;        echo "SYNTAX ERROR:  cancelall printername"&lt;BR /&gt;        exit 1&lt;BR /&gt;}&lt;BR /&gt;if [ $# -ne 1 ];&lt;BR /&gt;then&lt;BR /&gt;   ErrSyntax&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;### attempt to stop cancel mail to root&lt;BR /&gt;## cp -p /usr/bin/mail /usr/bin/mail.save&lt;BR /&gt;## echo "exit 0" &amp;gt; /usr/bin/mail&lt;BR /&gt;&lt;BR /&gt;# &lt;CANCEL your="" jobs=""&gt;&lt;BR /&gt;#   RESTORE MAIL AT THE END OF SCRIPT&lt;BR /&gt;###&lt;BR /&gt;#DISABLE THE PRINTER&lt;BR /&gt;disable $1&lt;BR /&gt;#Stat the jobs to a file&lt;BR /&gt;lpstat -o$1|grep $1&amp;gt;/tmp/printjobs&lt;BR /&gt;#Cuts out the job&lt;BR /&gt;cut -d " " -f 1 /tmp/printjobs&amp;gt;/tmp/printjobs2&lt;BR /&gt;#ADD cancel to front of list&lt;BR /&gt;cat /tmp/printjobs2|sed 's/^/cancel.11.0  /'&amp;gt;/tmp/printmasscancel&lt;BR /&gt;chmod 777 /tmp/printmasscancel&lt;BR /&gt;/tmp/printmasscancel&lt;BR /&gt;#ENABLE THE PRINTER&lt;BR /&gt;enable $1&lt;BR /&gt;#CLEANUP&lt;BR /&gt;&lt;BR /&gt;### RESTORE MAIL AT THE END OF SCRIPT&lt;BR /&gt;### PUT mail command back&lt;BR /&gt;## cp -p /usr/bin/mail.save /usr/bin/mail&lt;BR /&gt;&lt;BR /&gt;rm /tmp/printjobs&lt;BR /&gt;rm /tmp/printjobs2&lt;BR /&gt;rm /tmp/printmasscancel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;### cancel.11.0 is the real cancel program&lt;BR /&gt;### our cancel command is a sript to fix a local application call.&lt;/CANCEL&gt;</description>
      <pubDate>Tue, 21 Oct 2003 07:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-queues/m-p/3097515#M146181</guid>
      <dc:creator>Larry Basford</dc:creator>
      <dc:date>2003-10-21T07:33:49Z</dc:date>
    </item>
  </channel>
</rss>

