I have different processes that have to be run sequentially, but they are on two different servers. In short here what I want to do: 1. Run Process 1 on Server A 2. Run Process 2 on Server B 3. Run process 3 on Server A
But the second process cannot start until the first one is completed.
The two servers have SSH connectivity. I want to start the global process using a cron. But I do not want to start each of them with a crontab, and have long wait time between them, just to make sure that the first one is done before starting the second one. In another way, how can I make a process starting on a remote server from a local script, waiting for the remote script to be completed before proceeding to the next line ?