It's a simple non-critical script; the whole purpose of it is satisfying the boss. If the purpose of this script was anything else, then you should've definately use flock to lock the file while you're updating it. You are running a race condition where after one process opens the file for writing, thus truncating the file, another might start reading, and getting an empty line (0). After this case, you might end up either losing one count or overwriting the count with 1, leading to a scienario where you hear your boss shouting from acrpss the hall something that ends with "FIRED!!".
Aziz,,,
In reply to Re: printing blank page
by abstracts
in thread printing blank page
by mexnix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |