On 2/12/07, Michael L Torrie <[EMAIL PROTECTED]> wrote:
On Mon, 2007-02-12 at 11:45 -0700, Michael L Torrie wrote: > I have a situation where shell scripts, executed asynchronously, need to > have a way to wait for each other when doing a load-intensive operation. > Do any of you have any methods for synchronizing the operation of > concurrent shell scripts? My bad. Google reveals that there's a nice standard unix command: /usr/bin/lockfile man lockfile reveals this is just what I'm looking for.
lockfile... cool. If you happen to be using bash, you can do the same thing with a 'set -o noclobber' and avoid the overhead of forking an additional process (lockfile). http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_06.html#sect_03_06_02 /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
