Project

General

Profile

Paste
Download (306 Bytes) Statistics
| Branch: | Revision:

root / bin / log-report.sh @ 73a967a6

1
#!/bin/sh
2
. /home/assos/bin/scripts-config.sh
3

    
4
current_day=$(date "+%Y-%m-%d")
5
log_file="${d7_dir_log}/${current_day}.log"
6

    
7
cat "${log_file}" | mail -s "Log: ${current_day}" assos
8
python3 /home/assos/tmp/unlog/unlog/main.py "${log_file}" --config /home/assos/.unlog  --mail-subject "Unlog: ${current_day}"