Wait the end of a process to stop a scheduled task?

Viewed 22

I need some help.

I've a script that runs a scheduled task and this scheduled task run an other script. ( I know that strange but... I've no control over that... ).

I just want to know if there is a way to wait the end of the script running by the scheduled task to kill the task ?

Maybe in the script that runs the scheduled task I can search the process of the script runs by the task and if the process is not found, the scheduled task stops ?

I don't know if it is possible to do that and if someone can help me for that...

Thanks a lot

0 Answers
Related