unix - shell script to run netstat commands and email the results -


i researching how set shell script run netstat commands on unix server scan open ports. want each command run every 5 minutes on 24 hour period , email me findings.

is possible ?

sure it's possible.

though on unix machine, may want use else netstat (maybe sockstat better on freebsd server?).

you'll have setup able send mails correctly (sendmail there on freebsd server, you'll have enable , configure little bit, or install , use mail software; also, ensure e-mails server sending "identified" mechanisms spf , dkim avoid seing them rejected mail servers).

you can define cron job run script regularly want, everyday, every minute.

each of these steps requires work! i'd proceed slowly, step step.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -