Andrew,<br> <br> Thank you very much for the reply.&nbsp; I was hoping not to have to change the permissions on the directory, but I guess I will have to.&nbsp; Thanks for the insight.<br> <br> Richard<br><br><b><i>Andrew Rodland &lt;arodland@comcast.net&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Saturday 16 December 2006 12:35 pm, Richard Reina wrote:<br>&gt; Hope everyone is having a great weekend.<br>&gt;   When I execute:<br>&gt;<br>&gt;<br>&gt;  $: perl -ni.bak -e 'print unless 1..1' my_log.txt'<br>&gt;<br>&gt;  I get:<br>&gt;<br>&gt;  can't rename my_log.txt to my_log.txt.bak: Permission denied, skipping<br>&gt; file.<br>&gt;<br>&gt;  However, the permissions for my_log.txt and my_log.txt.bak are:<br>&gt;<br>&gt;  -rwxrwxrwx root root<br>&gt;<br><br>The permission on the file doesn't matter, you need write permission on the <br>directory that it's
 in.<br><br>Andrew<br>_______________________________________________<br>Chicago-talk mailing list<br>Chicago-talk@pm.org<br>http://mail.pm.org/mailman/listinfo/chicago-talk<br></blockquote><br><BR><BR>Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi