问题
单项选择题
在linux系统中,要建立cron任务,要求每年2月1日、8月1日的中午11点运行/tmp/test.sh文件,应在crontab文件中输入()。
A、0 11 1 2 8 /tmp/test.sh
B、0 11 1 2 8 * /tmp/test.sh
C、0 11 1 2,8 /tmp/test.sh
D、0 11 1 2,8 * /tmp/test.sh
答案
参考答案:D
在linux系统中,要建立cron任务,要求每年2月1日、8月1日的中午11点运行/tmp/test.sh文件,应在crontab文件中输入()。
A、0 11 1 2 8 /tmp/test.sh
B、0 11 1 2 8 * /tmp/test.sh
C、0 11 1 2,8 /tmp/test.sh
D、0 11 1 2,8 * /tmp/test.sh
参考答案:D