On Tue, 2002-10-15 at 11:03, Greg Freemyer wrote:
> For this specific file and shell script, what extra logic can I add that
> would give me the highest likelihood of a successful disk write.
> i.e. Would sync; sync; increase my odds of always successfully writing this
> file out?
I always add sync at the end of critical scripts. Sometimes i insert
supplemental "sync"s inside the script, after important steps are
But be aware that, on extremely busy machines with large amounts of
memory, sync can trigger a write storm on your disk array that might
hurt performance. It's only for a short while, but sometimes it matters.
And you don't really need sync in all your scripts. Perhaps in only
5..10% of them.
Writing a book on wireless security
is like writing a book on safe skydiving.