#!/bin/bash # put symlink to /etc/cron.daily/mode2cron_mail # mode2 cron batch for mail # cleanup if zombie process exists pgrep -f '/usr/bin/python3 /var/local/mode2/mailanalysis_batch.py' | xargs kill -9 > /dev/null 2>&1 # run batch /usr/bin/python3 /var/local/mode2/mailanalysis_batch.py > /dev/null 2>&1