Effectively what I'm trying to accomplish is the following, where cmd1 takes a while to run (~1 minute) and cmd2 returns almost instantly whenever run:
- cmd1 starts
- wait a little while (~10 seconds)
- cmd2 runs
- wait a little while again
- cmd2 runs again
- some time passes
- cmd1 finishes
It is essential this be scripted since it has got to go inside a rather large loop, which runs cmd1 with many different parameters, and then does the same all over again for several other longish-running commands.
How can I accomplish this?