<?xml version="1.0" encoding="windows-1252"?>
<node id="1021866" title="one script at a time (race condition)" created="2013-03-05 11:36:50" updated="2013-03-05 11:36:50">
<type id="115">
perlquestion</type>
<author id="693920">
david2008</author>
<data>
<field name="doctext">
Hi all,

&lt;p&gt;
I have a group of scripts a.pl ... n.pl.&lt;br&gt;
In each of these script i have section which makes a certain reset of the data base and then make a run.&lt;br&gt; When 2 of these scripts run together i get a messy result.&lt;br&gt;
How can i restrict that just one process runs at a time ?&lt;br&gt;
It would be sufficient for me that when a.pl runs and i try to run b.pl, that b.pl will die.&lt;br&gt;
How can i achieve this ?&lt;br&gt;
&lt;/p&gt;

Thanks,
David</field>
</data>
</node>
