Files
BDE/start.sh

10 lines
310 B
Bash
Executable File

#! /bin/bash
while true; do
echo "Starting BDE in `pwd` at `date`" >> /var/log/bde/startstop.log
echo "BDE restarted" | mail -s "BDE Restart" admin@apc910.finoba.by
python3 ./bde.py `pwd` 2>&1 >> log_`date -Idate`.txt
echo "BDE stopped in `pwd` at `date`" >> /var/log/bde/startstop.log
sleep 3
done