[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] flock() command
- Subject: RE: [cobalt-users] flock() command
- From: "Dan" <dan@xxxxxxxxxxxxx>
- Date: Thu Dec 2 11:00:08 1999
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of S.K.Sirajuddin
> Sent: Thursday, December 02, 1999 1:28 PM
> To: cobalt-developers@xxxxxxxxxxxxxxx
> Cc: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] flock() command
>
>
> Any one have idea whether RaQ2 supports file locking (flock()
> command) , Any
> help from the experienced user shall be highly appreciated.
>
I think it does. I'd have to look through some scripts I have running that I
believe use that. I think it may have more to do with Perl5 than the RAQ.
Here's a snip from one script running with no problems:
open (FILE,">$adverts_dir/$lockfilename.lok");
if ($ADVUseLocking) {
$lockresult = eval("flock(FILE,6)");
if ($@) {
$ADVUseLocking = 0;
last;
}
--
Dan Kriwitsky
>