Re: flock related problem

2008-11-28 Thread Chas. Owens
On Fri, Nov 28, 2008 at 00:09, Anirban Adhikary <[EMAIL PROTECTED]> wrote: snip > my $lock_file="/home/bighosh/OraOneLoader_3.0.2/Source/flocktest.txt"; > open LOCKFILE, ">>$lock_file" or die "Cannot open $lock_file $!"; > > while( ) > { > unless (flock LOCKFILE, LOCK_EX|LOCK_NB) { > warn "File $lo

flock related problem

2008-11-27 Thread Anirban Adhikary
Dear List I have written two identically same program, both of which using a same file to write some data.My logic is that when prog1 will write data to the file first it will lock the file , in between the 2nd program will also try to write data to that file if( which must happen) it gets the fil