I kicked-off a script to run, called "myscript1". I need to automatically run another script "myscript2" only after myscript1 has completed. I realize the simplest way is to do:
> myscript1; myscript2
However, I am talking about the case where I did not kick-off both scripts together. What commands can I use to monitor the already running script myscript1 to check when it has completed and automatically kick-off myscript2 ?