<?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: lp can't open file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948812#M115474</link>
    <description>I'm not sure if this issue was ever resolved, but I previously had the same. The root cause was no system default was assigned. I used lpadmin to define a default to resolve the issue.&lt;BR /&gt;&lt;BR /&gt;lpadmin -d{your default printer here}&lt;BR /&gt;&lt;BR /&gt;Gary</description>
    <pubDate>Mon, 28 Apr 2003 14:44:45 GMT</pubDate>
    <dc:creator>Gary Price</dc:creator>
    <dc:date>2003-04-28T14:44:45Z</dc:date>
    <item>
      <title>lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948788#M115450</link>
      <description>very frustrated by this problem.&lt;BR /&gt;&lt;BR /&gt;#uname -a&lt;BR /&gt;HPUX 10.20&lt;BR /&gt;&lt;BR /&gt;#cd /etc&lt;BR /&gt;#lp hosts&lt;BR /&gt;#can't open hosts&lt;BR /&gt;&lt;BR /&gt;#lp /etc/hosts&lt;BR /&gt;print OK&lt;BR /&gt;&lt;BR /&gt;#which lp&lt;BR /&gt;/usr/bin/lp&lt;BR /&gt;&lt;BR /&gt;#more hosts&lt;BR /&gt;display hosts OK&lt;BR /&gt;&lt;BR /&gt;Any idea is appreciated.  &lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 22:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948788#M115450</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-10T22:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948789#M115451</link>
      <description>And the permissions on this file are?&lt;BR /&gt;And the user issuing these commands has what permissions?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Thu, 10 Apr 2003 22:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948789#M115451</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-04-10T22:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948790#M115452</link>
      <description>And the permissions on this file are? &lt;BR /&gt;world-readable&lt;BR /&gt;-rw-r--r--&lt;BR /&gt;And the user issuing these commands has what permissions? &lt;BR /&gt;&lt;BR /&gt;root&lt;BR /&gt;&lt;BR /&gt;Notice #</description>
      <pubDate>Thu, 10 Apr 2003 22:12:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948790#M115452</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-10T22:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948791#M115453</link>
      <description>And your term type is what, as displayed by env?&lt;BR /&gt;Don't give up George, we'll get it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Thu, 10 Apr 2003 22:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948791#M115453</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-04-10T22:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948792#M115454</link>
      <description>I am remotely logining, so the term is vt100&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 10 Apr 2003 23:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948792#M115454</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-10T23:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948793#M115455</link>
      <description>This is a good one George. I have to guess it is the remote login environment causing this.&lt;BR /&gt;Can you more and vi any other file when logging remotely?&lt;BR /&gt;&lt;BR /&gt;After issue of the lp command, is the print in the print queue?&lt;BR /&gt;&lt;BR /&gt;We'll get this!&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Fri, 11 Apr 2003 14:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948793#M115455</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-04-11T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948794#M115456</link>
      <description>u may try:&lt;BR /&gt;cd /etc&lt;BR /&gt;lp ./hosts</description>
      <pubDate>Fri, 11 Apr 2003 14:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948794#M115456</guid>
      <dc:creator>Wina A. Buenavista</dc:creator>
      <dc:date>2003-04-11T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948795#M115457</link>
      <description>lp ./hosts &lt;BR /&gt; &lt;BR /&gt;doesn't work either. Same error message&lt;BR /&gt;&lt;BR /&gt;cannot open file hosts&lt;BR /&gt;&lt;BR /&gt;However, I still can more or cat or vi hosts&lt;BR /&gt;&lt;BR /&gt;by &lt;BR /&gt;&lt;BR /&gt;more hosts&lt;BR /&gt;&lt;BR /&gt;The permission of hosts is&lt;BR /&gt;rw-r--r--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 11 Apr 2003 15:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948795#M115457</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948796#M115458</link>
      <description>I am curious is someone hadn't put a "wrapper" on /usr/bin/lp. Could you publish an ll of /usr/bin/lp.&lt;BR /&gt;Here it is on one of my 10.20 boxes:&lt;BR /&gt;&lt;BR /&gt;root&amp;gt; uname -a&lt;BR /&gt;HP-UX chop B.10.20 A 9000/715 2001081504 two-user license&lt;BR /&gt;chop:[ /etc ]&lt;BR /&gt;root&amp;gt; ll /usr/bin/lp&lt;BR /&gt;-r-sr-xr-x   1 root       bin          45056 Nov  2  2001 /usr/bin/lp&lt;BR /&gt;chop:[ /etc ]&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 15:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948796#M115458</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2003-04-11T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948797#M115459</link>
      <description>root&amp;gt; what /usr/bin/lp&lt;BR /&gt;/usr/bin/lp:&lt;BR /&gt;  $Revision: 78.29.1.96 $&lt;BR /&gt;  PATCH_10_20: hpux_rel.o lp.o 01/11/02&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Forgot to "what" it for you.</description>
      <pubDate>Fri, 11 Apr 2003 15:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948797#M115459</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2003-04-11T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948798#M115460</link>
      <description># what /usr/bin/lp&lt;BR /&gt;/usr/bin/lp:&lt;BR /&gt;  $Revision: 78.29.1.89 $&lt;BR /&gt;  PATCH_10_20: hpux_rel.o lp.o 01/08/08&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ls -l /usr/bin/lp&lt;BR /&gt;-r-sr-xr-x   1 root       bin          45099 Aug 8  2001 /usr/bin/lp&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 11 Apr 2003 16:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948798#M115460</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948799#M115461</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What is your permissions on /etc?  What does 'ls -ld /etc' return?&lt;BR /&gt;&lt;BR /&gt;Also, what does 'echo $CDPATH' return?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 16:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948799#M115461</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-11T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948800#M115462</link>
      <description># ls -ld /etc&lt;BR /&gt;dr-xr-xr-x  25 bin        bin           6144 Apr 11 11:51 /etc&lt;BR /&gt;&lt;BR /&gt;# echo $CDPATH&lt;BR /&gt;CDPATH: Undefined variable.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 11 Apr 2003 16:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948800#M115462</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T16:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948801#M115463</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm stumped.  Has this problem just happened recently?  If so, what has changed on the box lately?  Patches?  Any config files modified such as root's .profile, etc.?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 17:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948801#M115463</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-11T17:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948802#M115464</link>
      <description>Frankly I don't know. Only few people rarely use this box, and fewer chances to use printer. Thanks.&lt;BR /&gt;&lt;BR /&gt;BTW, Does lp use $CDPATH to search the file or some other methods?</description>
      <pubDate>Fri, 11 Apr 2003 17:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948802#M115464</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948803#M115465</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The CDPATH is used for searching paths for the cd command to change directories.  It was a wild guess.&lt;BR /&gt;&lt;BR /&gt;Do you have a default destination set for your lp printing?  Also, does lp have the same problem with other files in /etc or does it print them?  For example, can you do:&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;lp services&lt;BR /&gt;&lt;BR /&gt;or does that complain also?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 17:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948803#M115465</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-11T17:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948804#M115466</link>
      <description>Yes. lp has problem for all files if using syntax&lt;BR /&gt;&lt;BR /&gt;lp filename&lt;BR /&gt;or &lt;BR /&gt;lp ./filename&lt;BR /&gt;&lt;BR /&gt;but it works for syntax like&lt;BR /&gt;&lt;BR /&gt;lp /directory/filename&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 11 Apr 2003 17:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948804#M115466</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948805#M115467</link>
      <description>Ok.  Does lp work for printing files from other filesystems?  For example, can you go to /var/adm and find some small file to print there?  I'm curious to see if it is just a problem in the /etc filesystem or if it happens in other filesystems as well.  &lt;BR /&gt;&lt;BR /&gt;Also, do you have a default printer destination set for your lp spooler, or is it undefined?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 17:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948805#M115467</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-11T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948806#M115468</link>
      <description>I don't have a 10.20 system to test, but tracing lp on HP-UX 11.0 indicates that the process does a stat and access syscall on the file in question as user lp, group lp.  &lt;BR /&gt;&lt;BR /&gt;It also (as lp) tried to link the file to /var/spool/lp/request/&lt;PRINTERNAME&gt;/&lt;REQ&gt;.  If that fails (cannot link across file systems), then it copies the file instead.&lt;BR /&gt;&lt;BR /&gt;If you have it installed, it would be helpful to see a trace output from running "lp host".  If you don't have it, you can d/l it from &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/trace-1.6/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/trace-1.6/&lt;/A&gt;&lt;/REQ&gt;&lt;/PRINTERNAME&gt;</description>
      <pubDate>Fri, 11 Apr 2003 18:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948806#M115468</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-11T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: lp can't open file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948807#M115469</link>
      <description>Thank you, all.&lt;BR /&gt;&lt;BR /&gt;All accounts except lp can't open a directly file in all directories.&lt;BR /&gt;&lt;BR /&gt;If I &lt;BR /&gt;su - lp &lt;BR /&gt;then &lt;BR /&gt;lp filename &lt;BR /&gt;works just fine.&lt;BR /&gt;&lt;BR /&gt;Maybe need to patch now.&lt;BR /&gt;&lt;BR /&gt;I'm installing a tracing tool to try. Thanks.</description>
      <pubDate>Fri, 11 Apr 2003 18:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-can-t-open-file/m-p/2948807#M115469</guid>
      <dc:creator>George Liu_2</dc:creator>
      <dc:date>2003-04-11T18:50:18Z</dc:date>
    </item>
  </channel>
</rss>

