That has fixed it. FYI its line 113 I commente the origianl and pasted in

netstat -ltpn | grep ":80 " | head -1 | cut -d/ -f2 | sed -e 's|[[:space:]].*$||; s|[^a-zA-Z0-9]||g'

Thanks