pulled nc out of mrtg.sh by converting it to ruby