$ nmap example.com PORT STATE SERVICE 80/tcp open http 443/tcp open https 1119/tcp closed bnetgame 1935/tcp closed rtmp
MAILTO="youremail@yourdomain.com" */30 * * * * nmap yourdomain.com | grep open > nmap.log.tmp; diff nmap.log nmap.log.tmp; mv nmap.log.tmp nmap.log