in reply to Waiting for one Sub to Exit First

I'm not quite sure I follow you. You say that the failover() sub executes before the run() sub is finished.

Yet, from your source code, it seems that the failover() sub is called from only when all of the other actions in run() are done.

Is this part of a larger, multithreaded script? Or do you mean that failover() executes before down_ip.pl finishes on the other host?

CU
Robartes-