File: daily-report.sh

package info (click to toggle)
fwanalog 0.6.9-8
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,004 kB
  • ctags: 25
  • sloc: sh: 1,541; makefile: 48
file content (15 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Simple sample script for creating daily stats
# best called from cron at 23:59

cd /root/fwanalog

# create the daily report
nice ./fwanalog.sh -t 

# mail the report to root
cat out/today.txt | mail -s "daily firewall log" root

# call script normally
nice ./fwanalog.sh