here is no way around locking for a concurrently written logfile.Yes there is. If the file is opened for appending ('>>') and a single string is written using syswrite, then the string is guaranteed to be atomicly appended to the file. Well, on UNIX systems anyway.
Dave.
In reply to Re^4: Writing to a log file without colliding
by dave_the_m
in thread Writing to a log file without colliding
by cgraf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |