Perl Monk, Perl Meditation | |
PerlMonks |
Re^6: Writing to a file atomically without renamingby waswas-fng (Curate) |
on Jun 30, 2005 at 23:22 UTC ( [id://471509]=note: print w/replies, xml ) | Need Help?? |
backup_file has different perms because you copied the file to a new file as a different user. I am not saying backup_file is gone if you hit that case -- only that you end up in a situation where your app or the other apps that use that file are looking at corrupt data (they don't know about backup_file).
cat backup_file > file does the following:
-Waswas
In Section
Seekers of Perl Wisdom
|
|