On Wed, Nov 08, 2000 at 08:37:04PM +1100, Brett Randall wrote:
 
> So, when you echo "" > Mailbox, you are missing one crucial
> step. Change the ownerships BACK to the owner. ie the user that will

Hmm. Generally speak, if the file already exists, then the ownership
and modes are unchanged. Agreed it depends on the shell.

> Basically, what you are doing is silly. Modifying a file which could
> be in use by some other process (especially log files) is likely to
> cause you hell.

Agreed. When modifying or replacing a file it behooves you to understand
how to interact with the program(s) accessing to that file. It differs
depending on the program. You cannot treat a mailbox like a syslog file
and you cannot treat a syslog file like a multilog file, etc.


Regards.

Reply via email to