I am looking for a mechanism to sync between scripts (bash or perl or Python) My requirement is as follows
Scripts a, b and c will start (not necessarily at the same time). Once a, b, or c hits a certain point in the script, it should stop for other scripts to hit the same point. For the sake of discussion lets call these as syncpoints. Once the syncpoint is hit, by all scripts, all scripts can proceed to next syncpoint or end of script
Here is an example
Script a
task1
task2
task3
syncpoint 1
task4
task5
syncpoint 2
Script 2
task1
syncpoint 1
task2
task3
task4
syncpoint 2
task5
syncpoint 3
This isn’t simple. But the good news is that it’s very well understood.
Start here: http://en.wikipedia.org/wiki/Job_scheduler
Then read this: http://en.wikipedia.org/wiki/List_of_job_scheduler_software
You probably want something like http://en.wikipedia.org/wiki/Simple_Linux_Utility_for_Resource_Management