Adding a conditional to a crontab

时间:2018-01-15 18:17:45

标签: shell cron sh

I'm having trouble understanding how to add conditionals to a cron file.

I currently just have one line that looks something like:

0 7 * * 1 program/bin/env -e ${ENVIRONMENT_ALIAS} ${ENVIRONMENT_ROOT}/bin/pop.py

I know a crontab file is formatted likeso:

minute(s) hour(s) day(s) month(s) weekday(s) command(s)

So would my "if" statement be after the 5 numbers above and before program/bin/env?

And what would the proper syntax for this if statement be?

0 个答案:

没有答案