Scripted access to sentral repository
From: Johan Hartzenberg (jhartzen_at_csc.com)
Date: 05/30/03
- Previous message: Darryl Pace: "ftp question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: sunmanagers@sunmanagers.org Date: Fri, 30 May 2003 10:14:16 +0200
Has anybody implemented file locking via shell scripts?
I need an effective way to allow multiple hosts to collect some data
locally and then dump it into a structured repository shared via NFS, which
means I will nead some form of file locking.
I would like to avoid race conditions from statements like the following:
[ ! -f $REPOSITORY/.lockfile ] && touch $REPOSITORY/.lockfile &&
MergeRepository && rm $REPOSITORY/.lockfile
Any ideas?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Previous message: Darryl Pace: "ftp question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]