<?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: Editing linked files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492672#M804064</link>
    <description>Is there any editor that monitors open sessions?  And what is the point of links if it doesn't save your from overwriting concurrent edits.</description>
    <pubDate>Mon, 12 Feb 2001 22:51:23 GMT</pubDate>
    <dc:creator>Wendi Whetsel</dc:creator>
    <dc:date>2001-02-12T22:51:23Z</dc:date>
    <item>
      <title>Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492670#M804062</link>
      <description>I am trying to figure out the "rules" for editing linked files.  If the original file and someone tries to access the file from the link, shouldn't they be warned that the file is being edited else where?  I am testing this in vi.  Can someone share some insight on the subject of ln.</description>
      <pubDate>Mon, 12 Feb 2001 22:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492670#M804062</guid>
      <dc:creator>Wendi Whetsel</dc:creator>
      <dc:date>2001-02-12T22:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492671#M804063</link>
      <description>There is no warning.  A soft link is simply a poiner to the inode information of the original file.  A hard link is a new inode netry that references the same data as the original file. In neither case is a link "aware" of the existence of other links.  vi does not prevent multiple users/sessions from simultaneously editing a file regardless of whether links are involved.  Last one out wins.</description>
      <pubDate>Mon, 12 Feb 2001 22:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492671#M804063</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-02-12T22:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492672#M804064</link>
      <description>Is there any editor that monitors open sessions?  And what is the point of links if it doesn't save your from overwriting concurrent edits.</description>
      <pubDate>Mon, 12 Feb 2001 22:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492672#M804064</guid>
      <dc:creator>Wendi Whetsel</dc:creator>
      <dc:date>2001-02-12T22:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492673#M804065</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In my opinion,links are meant to be readable than writeable.&lt;BR /&gt;&lt;BR /&gt;If you want to lock management when the link and the file is concurrently accessed, you can either use CVS or, write a script to always follow the link to its regular file and load the regular file in the editor eg. "vilink file", and subsequently pass the control to vi.&lt;BR /&gt;&lt;BR /&gt;vilink:&lt;BR /&gt;======&lt;BR /&gt;#/sbin/sh&lt;BR /&gt;if [ -L $1 ] # if argument is a link&lt;BR /&gt;then&lt;BR /&gt;  vi `ls -l $1 | cut -d\&amp;gt; -f2`&lt;BR /&gt;else&lt;BR /&gt;  vi $1&lt;BR /&gt;fi&lt;BR /&gt;======&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong.&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2001 23:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492673#M804065</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-12T23:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492674#M804066</link>
      <description>If you want to prevent wimultaneous edits, use any type of revision control system.  RCS (ci, co) comes native in HP-UX.&lt;BR /&gt;&lt;BR /&gt;As to links, they have several uses.  Soft links are often used to provide transitional links when the location of files has changed (after version upgrades, for instance).  Soft links can also be used to ease space demands on small filesystems by "shifting" the data load elsewhere.  Hard links can be used to protect access to data from being accidently lost by a careless rm.  So long as one hard link remains, the data is still available.</description>
      <pubDate>Mon, 12 Feb 2001 23:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492674#M804066</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-02-12T23:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Editing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492675#M804067</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;...some more useful information on soft (symbolic) links.&lt;BR /&gt;&lt;BR /&gt;When a 'chown' is executed, by default, the owner or group of the target file that a symbolic link points to is changed.  If the '-h' chown option is used, the target file that the symbolic link points to is not affected.&lt;BR /&gt;&lt;BR /&gt;By default, a 'find' does not follow symbolic links.  The '-follow' option of find can be used to change this behavior.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 13 Feb 2001 00:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-linked-files/m-p/2492675#M804067</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-02-13T00:20:40Z</dc:date>
    </item>
  </channel>
</rss>

