brmbar/brmbar3/log.sh
2018-04-02 01:40:37 +02:00

6 lines
149 B
Bash
Executable file

#!/bin/bash
p=`/home/brmlab/brmbar/brmbar3/brmbar-cli.py userlog "$1" yesterday`
if [ -n "$p" ]; then
echo "$p" | mail -s "brmbar report" "$2"
fi