On my OS (Ubuntu Linux) the OS prevents writing to files that are already open for writing,

That's a very odd Unix. One I've never encountered before.

Now, there are some OSses that won't allow you to write to pages binaries currently being executed by some process (giving you a 'text busy' message), but that's something else entirely.

(The same is shown by trying to open the same file twice using "vi".)

Ah, yes, that editor. The one that tries to be vi but isn't. I'm a vi-lover and have been using vi and vi-clones for 25+ years. But I loathe environments where 'vi file' starts up an editor that isn't quite 'vi'. By all means, if you call it 'vi', then have it act like 'vi'. If it acts otherwise, call it otherwise.

As for that editor, that editor creates another file in the same directory, and if that file exists, it thinks the file is already edited and starts complaining. That has nothing to do with the OS - that's just a behavioural thing of the editor that isn't quite vi. Using another program, I can happily modify the same file.


In reply to Re^2: Creating file with 777 permission by Anonymous Monk
in thread Creating file with 777 permission by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.