excat - cat command with file locking
excat
cat source | excat -l file.lock >>dest
excat acts like cat, but creates a lockfile and ensures exclusive access before opening the output stream.
cat
$ excat -l file.lock sourcefile >>destfile $ cat sourcefile | excat -l file.lock >>destfile
Copyright 2004 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2004, Mike Schilli <m@perlmeister.com>