wait for processes [closed]

I want to wait for a process to close to perform some action how can I do that?
Was this page helpful?