|
That's fine.
When you put that all in your script, you don't need to worry about the time delay. The next command won't execute until the first one finishes unless you put the first one in to the background.
But instead of running an ssh session, use scp instead. It's much better suited. Otherwise, your logic is sound. Did you want someone to write this script for you?
|