<?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: List Open Files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879493#M546445</link>
    <description>By the way, you can remove open files as well. For example, if you remove /xxx/yyy/myfile, the underlying unlink() system call will remove the directory entry and myfile will no longer be visible. However, the application will continue to access this file normally because the file will not actually be deleted until all process which had the file open either close the file or terminate.&lt;BR /&gt;&lt;BR /&gt;Man 2 unlink for details.&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Oct 2006 23:35:05 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-10-12T23:35:05Z</dc:date>
    <item>
      <title>List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879491#M546443</link>
      <description>Hi experts, I need to make a script to get (list) the open files in a file system. I need that because I have to remove a group of files, but not the open files.&lt;BR /&gt;Please, Can somebody help me.&lt;BR /&gt;Thanks.....</description>
      <pubDate>Thu, 12 Oct 2006 23:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879491#M546443</guid>
      <dc:creator>FrankBurg</dc:creator>
      <dc:date>2006-10-12T23:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879492#M546444</link>
      <description>By far, the tool of choice for this task is "lsof" -- list open files; a much less powerful choice is the fuser command.&lt;BR /&gt;&lt;BR /&gt;Get lsof from here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Lsof is such a useful command; no HP-UX box should leave /home without it.</description>
      <pubDate>Thu, 12 Oct 2006 23:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879492#M546444</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-10-12T23:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879493#M546445</link>
      <description>By the way, you can remove open files as well. For example, if you remove /xxx/yyy/myfile, the underlying unlink() system call will remove the directory entry and myfile will no longer be visible. However, the application will continue to access this file normally because the file will not actually be deleted until all process which had the file open either close the file or terminate.&lt;BR /&gt;&lt;BR /&gt;Man 2 unlink for details.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Oct 2006 23:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879493#M546445</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-10-12T23:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879494#M546446</link>
      <description>The point is, I can't install any tools...I think that I have to use fuser, but Can you help with the parameters, to list the open files?</description>
      <pubDate>Thu, 12 Oct 2006 23:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879494#M546446</guid>
      <dc:creator>FrankBurg</dc:creator>
      <dc:date>2006-10-12T23:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879495#M546447</link>
      <description>It's not very complicated. For example "fuser /home/mydir" would list process that have files open under /home/mydir (or perhaps not open) but using it as the current working directory. I've given you the command so the rest of the quest should be up to you. man fuser for details.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Oct 2006 23:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879495#M546447</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-10-12T23:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879496#M546448</link>
      <description>Friend  &lt;BR /&gt;For the Glance you obtain this information .</description>
      <pubDate>Fri, 13 Oct 2006 12:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879496#M546448</guid>
      <dc:creator>Calandrello</dc:creator>
      <dc:date>2006-10-13T12:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879497#M546449</link>
      <description>&lt;BR /&gt;fuser -u /dev/dsk/cXtXdX will show all procs and related users on that disk.&lt;BR /&gt;The -k option will kill processes for a specific file(s) or file system.&lt;BR /&gt;Regards,&lt;BR /&gt;FLG</description>
      <pubDate>Tue, 17 Oct 2006 14:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879497#M546449</guid>
      <dc:creator>florin_10</dc:creator>
      <dc:date>2006-10-17T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879498#M546450</link>
      <description>fuser won't work because it does not find open files, it locates PIDs for processes that have enumerated filenames or directories or mounpoints. It does not name the files. If you cannot install lsof, your only choice is to run Glance and if that is not installed, you'll have to run fuser on each file you want to test. If it is open, fuser will return PID(s) for processes that have the file open.</description>
      <pubDate>Tue, 17 Oct 2006 17:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879498#M546450</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-17T17:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879499#M546451</link>
      <description>for i in `ls -R .`;do&lt;BR /&gt;if [ `fuser -u $i` ];then&lt;BR /&gt;echo $i &amp;gt;&amp;gt;filesopen&lt;BR /&gt;done 2&amp;gt;/dev/null</description>
      <pubDate>Tue, 17 Oct 2006 18:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879499#M546451</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2006-10-17T18:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: List Open Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879500#M546452</link>
      <description>fuser does list open files.&lt;BR /&gt;&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;  The fuser command lists the process IDs of&lt;BR /&gt;  processes that have each specified file &lt;BR /&gt;  open.&lt;BR /&gt;&lt;BR /&gt;    o    It has file open.&lt;BR /&gt;    ^&lt;BR /&gt;&lt;BR /&gt;more somefile   - in another window.&lt;BR /&gt;&lt;BR /&gt;fuser -u somefile&lt;BR /&gt;&lt;BR /&gt;somefile:  20483o(root) &lt;BR /&gt;                ^</description>
      <pubDate>Tue, 17 Oct 2006 18:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-open-files/m-p/3879500#M546452</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2006-10-17T18:26:18Z</dc:date>
    </item>
  </channel>
</rss>

