@liw@toot.liw.fi
I found a race condition in my brain.
I have Wake-on-LAN set up for a couple of desktop machines at home I use for servers, and I ran my script to wake named servers. Then waited. And waited. The server didn't turn on. I know this because I hear when the fans start spinning.
Turns out the server was already on so the fans were already spinning, and I was waiting for a change in the noise that never happened.
I should have used ping instead. Sigh.