<?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: view pinter spool file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867716#M277797</link>
    <description>Here you go. The first attachment is the revised version of lpview. The next posting has lpcat attached. You can just replace your existing lpview script. It calls a second script called lpview that is run as EUID=lp so the user can read their own job.</description>
    <pubDate>Sat, 30 Sep 2006 19:56:36 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-09-30T19:56:36Z</dc:date>
    <item>
      <title>view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867711#M277792</link>
      <description>Dear all,&lt;BR /&gt;I am looking for a script that allows user to view ther own spoolfile in&lt;BR /&gt;/var/spool/lp/request/PRINTERNAME&lt;BR /&gt;by typing the printjob #&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Kevin</description>
      <pubDate>Fri, 22 Sep 2006 01:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867711#M277792</guid>
      <dc:creator>kevinq_1</dc:creator>
      <dc:date>2006-09-22T01:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867712#M277793</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;If you have some idea about scripting, then you just go through with below link. If possible try to modify it as per your requirment.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.adminscripteditor.com/scriptlibrary/view.asp?id=421" target="_blank"&gt;http://www.adminscripteditor.com/scriptlibrary/view.asp?id=421&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sudhakaran.K</description>
      <pubDate>Fri, 22 Sep 2006 02:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867712#M277793</guid>
      <dc:creator>sudhapage</dc:creator>
      <dc:date>2006-09-22T02:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867713#M277794</link>
      <description>Thank you for information.&lt;BR /&gt;Sorry i did not mension that my system is&lt;BR /&gt;HP-UNIX.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kevin</description>
      <pubDate>Fri, 22 Sep 2006 10:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867713#M277794</guid>
      <dc:creator>kevinq_1</dc:creator>
      <dc:date>2006-09-22T10:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867714#M277795</link>
      <description>Well, there's the simple way but users always make mistakes so here's a script that checks for everything. I've written a script (attached) that should accomplish your task. &lt;BR /&gt; &lt;BR /&gt;You can modify the "view" portion at the bottom as needed. Note that a simple cat won't be appropriate if the file is 50,000 lines in length, or it may contain special binary sequences. If your users understand vi, you could actually start view (vi in read-only mode).</description>
      <pubDate>Sat, 23 Sep 2006 20:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867714#M277795</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-23T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867715#M277796</link>
      <description>Thank you-Bill&lt;BR /&gt;&lt;BR /&gt;The script works good if user is root&lt;BR /&gt;because in the printer folder "epson"&lt;BR /&gt;the permission is 440 and owner by lp:lp&lt;BR /&gt;Is there away to allow user to read these files without add them to group "lp"&lt;BR /&gt;Regards,&lt;BR /&gt;Kevin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Press Enter to list the file..&lt;BR /&gt;cat: Cannot open /var/spool/lp/request/epson/dA5620usa_1: Permission denied&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Sep 2006 03:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867715#M277796</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2006-09-28T03:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867716#M277797</link>
      <description>Here you go. The first attachment is the revised version of lpview. The next posting has lpcat attached. You can just replace your existing lpview script. It calls a second script called lpview that is run as EUID=lp so the user can read their own job.</description>
      <pubDate>Sat, 30 Sep 2006 19:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867716#M277797</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-30T19:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867717#M277798</link>
      <description>Here is the lpcat file. Store it in /etc/lp, then:&lt;BR /&gt;chown lp:lp /etc/lp/lpcat&lt;BR /&gt;chmod 4755 /etc/lp/lpcat&lt;BR /&gt; &lt;BR /&gt;The lpcat script spends a lot of time checking that this user is allowed to look at the specified print job, turns off traps, and invalidates the SHELL variable. Normally, SETUID scripts are a no-no but in this case, it only changes to lp and doesn't allow any exit by the user. Lots of comments in both scripts.</description>
      <pubDate>Sat, 30 Sep 2006 20:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867717#M277798</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-30T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: view pinter spool file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867718#M277799</link>
      <description>One last note: lpcat has an 'echo' in front of the logger command. Remove the echo so that attempts to read non-owned files will be logged.</description>
      <pubDate>Sun, 01 Oct 2006 12:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/view-pinter-spool-file/m-p/3867718#M277799</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-01T12:15:54Z</dc:date>
    </item>
  </channel>
</rss>

