david2008 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I have a group of scripts a.pl ... n.pl.
In each of these script i have section which makes a certain reset of the data base and then make a run.
When 2 of these scripts run together i get a messy result.
How can i restrict that just one process runs at a time ?
It would be sufficient for me that when a.pl runs and i try to run b.pl, that b.pl will die.
How can i achieve this ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: one script at a time (race condition)
by roboticus (Chancellor) on Mar 05, 2013 at 17:42 UTC | |
Re: one script at a time (race condition)
by Anonymous Monk on Mar 05, 2013 at 16:45 UTC | |
by david2008 (Scribe) on Mar 05, 2013 at 16:52 UTC |
Back to
Seekers of Perl Wisdom