[Bioperl-l] SeqIO File locking

Jason Stajich jason.stajich at duke.edu
Fri Nov 12 13:47:13 EST 2004

Perl's flock() should take care of it - not sure how it performs with 
shared filesystems (NFS).

perldoc -f flock


You might want to do something using CVS or RCS to check in changes 
rather than just overwritting the file if you want to insure changes 
are incompatible.  Let's you rollback if someone does a boo-boo....  
Will prevent you from having to have file locking at the perl layer 
(write to a temporary directory, do your 'cvs commit')

On Nov 12, 2004, at 1:33 PM, Dave Thompson wrote:

> Hi,
> I'm writing a cgi web interface that can alter GenBank files via 
> SeqIO. Is there a way to implement file locking with SeqIO so that 
> multiple users cannot write to the same GenBank file at the same time?
> thanks
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l

Jason Stajich
jason.stajich at duke.edu

More information about the Bioperl-l mailing list