Problem in writting a shared file

hi,

I have written a program where i keep a log of certain system processes.

this program is executed by the many people when requied.

The log file is placed in a my home on unix system which gets mounted when the log is to be written.

Now when i'm executing the program the log file is updated. but if someone else executes it the log file does not get updated.

I have set permission of log file to 666.

Thanks for any help.

[469 byte] By [rudza] at [2007-11-27 6:57:21]
# 1
You can't write to a single file concurrently. One process will grab the lock (and not release it if you don't tidy up your resources after each bit of writing) and block all others from working on the file until it's done.
CeciNEstPasUnProgrammeura at 2007-7-12 18:34:37 > top of Java-index,Java Essentials,Java Programming...
# 2
> ... The log file is placed in a my home on unix systemMaybe you can use syslog?
tschodta at 2007-7-12 18:34:37 > top of Java-index,Java Essentials,Java Programming...
# 3
how do i tidy up my resources?I dont want to use syslog.
rudza at 2007-7-12 18:34:37 > top of Java-index,Java Essentials,Java Programming...