Yes, using flock will allow you to safely edit the same file from two different scripts (or two different instances of the same script, or even one script and one C program).
In reply to Re: flock for same file different scripts
by grantm
in thread flock for same file different scripts
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |