Crontab file does not accept variables

我建了一个每日自动备份的cron job,备份文件的文件含有系统日期`date +%m%d%y`,但发现crontab file里command不接受变量,导致crontab file这一行被忽略。

我只好把含变量的command专门建一个bash文件,command间接由crontab file调用。

Leave a comment

Your email address will not be published. Required fields are marked *