<?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: checking reference count of directory file open in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182132#M163071</link>
    <description>Hi danysis,&lt;BR /&gt;&lt;BR /&gt;Try this :&lt;BR /&gt;&lt;BR /&gt;lsof +D /tmp&lt;BR /&gt;&lt;BR /&gt;Best regards</description>
    <pubDate>Thu, 05 Feb 2004 04:29:47 GMT</pubDate>
    <dc:creator>Aupee Jean-Francois</dc:creator>
    <dc:date>2004-02-05T04:29:47Z</dc:date>
    <item>
      <title>checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182126#M163065</link>
      <description>Hi Gurus&lt;BR /&gt;&lt;BR /&gt;I have problem , how can you check , whether one directory is opened by anothere process in&lt;BR /&gt;HP-ux&lt;BR /&gt;&lt;BR /&gt;answer expected early&lt;BR /&gt;&lt;BR /&gt;see problem is&lt;BR /&gt;&lt;BR /&gt;I have one directory file /tmp which is opened by one process, when second process tries to open the directory /tmp , it should not allow&lt;BR /&gt;How can i check whether directory is opened by other process&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;danysis</description>
      <pubDate>Tue, 03 Feb 2004 22:32:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182126#M163065</guid>
      <dc:creator>danysis</dc:creator>
      <dc:date>2004-02-03T22:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182127#M163066</link>
      <description>Hi Danysis,&lt;BR /&gt;&lt;BR /&gt;I think you're looking for the fuser command, i.e. :&lt;BR /&gt;&lt;BR /&gt;# fuser -u /tmp&lt;BR /&gt;&lt;BR /&gt;This will list the process ids - check the manpage for full details. There is also an opensource tool called lsof which is a lot more powerful - its available here :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Tue, 03 Feb 2004 23:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182127#M163066</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2004-02-03T23:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182128#M163067</link>
      <description>#fuser -cu /tmp&lt;BR /&gt;&lt;BR /&gt;That should list down the processes.</description>
      <pubDate>Tue, 03 Feb 2004 23:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182128#M163067</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-02-03T23:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182129#M163068</link>
      <description>Hi &lt;BR /&gt;Thnx for mail&lt;BR /&gt;&lt;BR /&gt;But i want system call which , normal user can use to check , how many instances of directory file is opened by a process&lt;BR /&gt;&lt;BR /&gt;but for fuser commond , you should run as a root , i suppose&lt;BR /&gt;&lt;BR /&gt;My problem is, i want to check whether a directory is opened  by another process</description>
      <pubDate>Tue, 03 Feb 2004 23:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182129#M163068</guid>
      <dc:creator>danysis</dc:creator>
      <dc:date>2004-02-03T23:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182130#M163069</link>
      <description>I don't think this will be possible without compromising security too much. Is there a call on another system that can do this?&lt;BR /&gt;&lt;BR /&gt;What you could do is write a daemon process that could do the work (through pstat) and have the user's query this, while having it take care of the authentication. A bit of work but if needs must....&lt;BR /&gt;&lt;BR /&gt;- James.</description>
      <pubDate>Wed, 04 Feb 2004 00:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182130#M163069</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2004-02-04T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182131#M163070</link>
      <description>You could try to open the file/directory in exclusive mode (O_EXCL option on the open system call) but this will not always work (some NFS implementations ignore it, for instance). But it might help solve your problem: don't count number of open sessions, but block multiple instances of same program to use the same dir/file.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Feb 2004 02:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182131#M163070</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-04T02:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: checking reference count of directory file open</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182132#M163071</link>
      <description>Hi danysis,&lt;BR /&gt;&lt;BR /&gt;Try this :&lt;BR /&gt;&lt;BR /&gt;lsof +D /tmp&lt;BR /&gt;&lt;BR /&gt;Best regards</description>
      <pubDate>Thu, 05 Feb 2004 04:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-reference-count-of-directory-file-open/m-p/3182132#M163071</guid>
      <dc:creator>Aupee Jean-Francois</dc:creator>
      <dc:date>2004-02-05T04:29:47Z</dc:date>
    </item>
  </channel>
</rss>

