Cron job stderr to email AND log file?

前端 未结 9 1625
离开以前
离开以前 2021-01-06 07:57

I have a cron job:

$SP_s/StartDailyS1.sh >$LP_s/MirrorLogS1.txt

Where SP_s is the path to the script and LP_s

9条回答
  •  一整个雨季
    2021-01-06 08:39

    You could try writing another cronjob to read the log file and "display" the log (really just let cron email it to you)

提交回复
热议问题