[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locking solved

From: Tobias Brox
Subject: Re: locking solved
Date: Fri, 5 Oct 2001 00:59:48 +0400
User-agent: Mutt/1.0.1i

[raptor - Thu at 03:27:25PM +0200]
> #!/usr/bin/perl
> use strict;

It's a good idea to always use "-w" after perl.

I don't really understand why you can't do with only one script.  You could
check for the existance of a lockfile in the start of the script and
eventually exit, create a lockfile, sleep for five seconds (or whatever you will
need to let all the committing complete), do the update business, and then
delete the lockfile.

>  `sleep 5`;#using perl sleep didn't worked !?!!!

That is really weird.  What will happen if you do this from your shell:

perl -e 'sleep 5'
perl -V

Unemployed hacker
Will program for food!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]