Originally Posted by Expeto
w && echo "netstat listing" && netstat -nalp |grep ":22 " >> /tmp/report
last -a >> /tmp/report
zgrep ssh /var/log/secure* |grep Accept >> /tmp/report
zgrep ftp /var/log/secure* |grep Accept >> /tmp/report
mail -s 'Report!' firstname.lastname@example.org < /tmp/report
edit: you need to configure your mail server for this to work
Hi thanks for u r mail.
this is working fine. but i want this scripts for date basis. now report shows all details. my need is like today i run the scripts i will get get current date report.please advise me.
thanks sorr for my english