I have since found that running this script too frequently results in the "No EventSwitcher active" bug. Searches show it to be mostly a 3.1 problem but this is not the first time I've seen it in 3.0. It used to happen with a hack I was working on that leaked file handles.
I can't seem to find much information about this except that the only fix is a reboot once the bug is encountered. I'm going to try running wiht less frequency and see what happens. I was running it at 10 minute intervals since I didn't think there was any harm in that. I have switch to hourly so let's see what happens.
Does anyone know more about the nature of this bug and possible techniques to avoid it?
Perhaps the database open handles are never being cleared when the script exits. It's probably some sort of memory leak. Perhaps the only fix is to have the script run in an endless loop? That's messy and hogs resources.
perl -e 'print unpack("u","\@2\&\%V92\!Y;W4\@:&\%C:V5D(\%E/55\(\@5\&EV\;R\!T;V1A>3\\-\`"),"\n";'