I know, it's risky, however, in context (IE when this script is called by the monitoring daemon) then it's not as bad as it seems. Thanks for the hint about the statement modifiers, I'll take a look, - this script was initially ported from a shellscript + netcat, so it's still got a few hangovers :)