<?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: Does a process have an open file handle? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570796#M830906</link>
    <description>Hello, 11.11.  Here's an swlist on my depot of lsof and a chatr on the lsof executable.&lt;BR /&gt;&lt;BR /&gt;cfcert1:/opt/fcrtv3/log #&amp;gt; uname -a&lt;BR /&gt;HP-UX cfcert1 B.11.11 U 9000/800 122901577 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;cfcert1:/opt/fcrtv3/log #&amp;gt; swlist | grep -i lsof&lt;BR /&gt;  lsof                          4.74           lsof&lt;BR /&gt;&lt;BR /&gt;cfcert1:/usr/local/bin #&amp;gt; chatr lsof&lt;BR /&gt;chatr(warning): dl_header_ext.size != sizeof(dl_header_ext). Please update your&lt;BR /&gt;version of the chatr tool.&lt;BR /&gt;lsof:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   first&lt;BR /&gt;             embedded path  disabled  second Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred&lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         plabel caching disabled&lt;BR /&gt;         global hash array size:1103&lt;BR /&gt;         global hash array nbuckets:3&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references enabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled</description>
    <pubDate>Sat, 25 Jun 2005 15:39:27 GMT</pubDate>
    <dc:creator>Ameer Dixit</dc:creator>
    <dc:date>2005-06-25T15:39:27Z</dc:date>
    <item>
      <title>Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570794#M830904</link>
      <description>Hello,&lt;BR /&gt;I'm trying to write a script to clean up some logfiles, but I need to be certain no active processes have an open filehandle.  I thought I could do this easily using lsof ("lsof filename" should list any processing using the file), but the command just coredumps on my 11i server.  I got the lsof package from the HPUX porting site, for the 11.0 and 11i OS's.  Does someone know of a different lsof I should use, or have another solution to my problem?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Sat, 25 Jun 2005 15:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570794#M830904</guid>
      <dc:creator>Ameer Dixit</dc:creator>
      <dc:date>2005-06-25T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570795#M830905</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;11i as in 11.11 or 11.23 ?&lt;BR /&gt;&lt;BR /&gt;Could you post a uname -a &lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Sat, 25 Jun 2005 15:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570795#M830905</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-06-25T15:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570796#M830906</link>
      <description>Hello, 11.11.  Here's an swlist on my depot of lsof and a chatr on the lsof executable.&lt;BR /&gt;&lt;BR /&gt;cfcert1:/opt/fcrtv3/log #&amp;gt; uname -a&lt;BR /&gt;HP-UX cfcert1 B.11.11 U 9000/800 122901577 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;cfcert1:/opt/fcrtv3/log #&amp;gt; swlist | grep -i lsof&lt;BR /&gt;  lsof                          4.74           lsof&lt;BR /&gt;&lt;BR /&gt;cfcert1:/usr/local/bin #&amp;gt; chatr lsof&lt;BR /&gt;chatr(warning): dl_header_ext.size != sizeof(dl_header_ext). Please update your&lt;BR /&gt;version of the chatr tool.&lt;BR /&gt;lsof:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   first&lt;BR /&gt;             embedded path  disabled  second Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred&lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         plabel caching disabled&lt;BR /&gt;         global hash array size:1103&lt;BR /&gt;         global hash array nbuckets:3&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references enabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled</description>
      <pubDate>Sat, 25 Jun 2005 15:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570796#M830906</guid>
      <dc:creator>Ameer Dixit</dc:creator>
      <dc:date>2005-06-25T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570797#M830907</link>
      <description>I wondering about all the run time dependecies ??&lt;BR /&gt;&lt;BR /&gt;lsof Run-time dependencies:  bison flex gcc gettext libiconv m4&lt;BR /&gt;&lt;BR /&gt;Attached a older 64 bits version to this thread should work on your 11.11 version.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jun 2005 16:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570797#M830907</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-06-25T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570798#M830908</link>
      <description>Thank you.  I've downloaded it to my PC as a .zip, but Winzip doesn't know what it is.  Should be a .tgz or ?  Thanks again.</description>
      <pubDate>Sat, 25 Jun 2005 16:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570798#M830908</guid>
      <dc:creator>Ameer Dixit</dc:creator>
      <dc:date>2005-06-25T16:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570799#M830909</link>
      <description>File handles belong to another operating system's lexicon; in UNIX speak the term is "file descriptor" --- and don't you forget it. You should download the lsof source and compile/link it yourself. It's quite easy.</description>
      <pubDate>Sat, 25 Jun 2005 16:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570799#M830909</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-25T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570800#M830910</link>
      <description>OK, I can certainly give that a try.  Is there a ITRC link or other good place to look for instructions?  I've never had to manually compile anything on HPUX (we've come so far it mades admins really lazy).</description>
      <pubDate>Sat, 25 Jun 2005 16:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570800#M830910</guid>
      <dc:creator>Ameer Dixit</dc:creator>
      <dc:date>2005-06-25T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570801#M830911</link>
      <description>The instructions are included with the source code download. Generally, you binary download the gzip'ed file into a directory; gunzip it, and then untar it. Next cd into the untar'ed direcory and run 'configure'. You then execute 'make'.</description>
      <pubDate>Sat, 25 Jun 2005 16:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570801#M830911</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-25T16:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570802#M830912</link>
      <description>try this one:&lt;BR /&gt;&lt;BR /&gt;lsof | grep filename&lt;BR /&gt;&lt;BR /&gt;note: give a filename not a full directory path.&lt;BR /&gt;&lt;BR /&gt;also:&lt;BR /&gt;&lt;BR /&gt;lsof &amp;gt; /tmp/lsof.out&lt;BR /&gt;&lt;BR /&gt;grep filename /tmp/lsof.out&lt;BR /&gt;&lt;BR /&gt;then you can run awk or cut tools on this file to get the pid..  and then you can status the pid -- to see if it is still running..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jun 2005 16:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570802#M830912</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-25T16:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does a process have an open file handle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570803#M830913</link>
      <description>Hi Amit,&lt;BR /&gt;&lt;BR /&gt;Can you try using fuser in your script if you are still facing problems with lsof&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath</description>
      <pubDate>Sat, 25 Jun 2005 18:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-a-process-have-an-open-file-handle/m-p/3570803#M830913</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-06-25T18:55:38Z</dc:date>
    </item>
  </channel>
</rss>

