我有几个简单的 cron 作业在 root 下运行。但是,它们似乎运行了两次,我不知道为什么。没有其他用户运行任何 cron 作业,唯一的 cronfile 是针对 root 的。作业完成得很好,但两次。
这是根 crontab 文件:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * cd / && run-parts …Run Code Online (Sandbox Code Playgroud) 我正在本地组策略中创建应用程序白名单,并且需要能够运行 cmd 脚本文件。简单地将cmd.exe、wscript.exe、 或cscript.exe加入白名单不会产生任何影响。我的脚本文件有.cmd扩展名。是否有处理.cmd脚本文件的不同应用程序?