http://www.perlmonks.org?node_id=1069659


in reply to Best way to synchronise scripts

Also: this is generally the purview of "workload managers" such as, in the commercial world, e.g. Tivoli. There are open-source batch workload managers out there, too. It might be more convenient overall to be able to control and to synchronize the execution of scripts externally to any and all of them, and without writing a custom-script to do this rather commonly requested thing. (Recovery plans, e.g. when a particular script fails, can also be handled easily with such systems.)