#!/bin/bash FILE=$(basename $0) cd /opt/magicka/data/ftn if [ "${FILE}" == "magitoss.sh" ]; then /opt/magicka/bin/magimail toss elif [ "${FILE}" == "magiscan.sh" ]; then /opt/magicka/bin/magimail scan fi