On Wed, Feb 24, 2016 at 9:10 AM, Shawn H Corey <shawnhco...@gmail.com> wrote:
> On Wed, 24 Feb 2016 18:47:09 +0200
> Shlomi Fish <shlo...@shlomifish.org> wrote:
>
>> Hello Kenneth,
>>
>> On Tue, 23 Feb 2016 18:34:54 -0800
>> Kenneth Wolcott <kennethwolc...@gmail.com> wrote:
>>
>> > Hi;
>> >
>> >   This seems like a very simple concept, but I'm not getting it, so
>> > I'd like some help.
>> >
>> >   So part of this is perl (not understanding readdir and/or glob
>> > well enough) and part of it is not getting the logic right.
>> >
>> >   I have five perl scripts.
>> >
>> >   I do not want any of them running concurrently as they will use a
>> > common resource which will cause corruption in the resource and will
>> > probably consume too much CPU and/or RAM/ and/or I/O.
>>
>> Why not just use flock - see
>> http://perldoc.perl.org/functions/flock.html ?
>>
>
> Some examples:
>
> http://perltricks.com/article/2/2015/11/4/Run-only-one-instance-of-a-program-at-a-time/
>
> http://www.perlmonks.org/?node_id=590619

Thanks, I think I will give a good hard look at flock and the links
are helpful.  It looks like a better solution overall.

Ken

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to