小编lam*_*ins的帖子

运行两次的 Cron 作业 - Ubuntu 服务器 12.04

我有几个简单的 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)

linux ubuntu process cron

3
推荐指数
1
解决办法
2762
查看次数

什么应用程序用于运行 cmd 脚本?

我正在本地组策略中创建应用程序白名单,并且需要能够运行 cmd 脚本文件。简单地将cmd.exewscript.exe、 或cscript.exe加入白名单不会产生任何影响。我的脚本文件有.cmd扩展名。是否有处理.cmd脚本文件的不同应用程序?

scripting windows-xp group-policy windows-command-prompt

1
推荐指数
1
解决办法
307
查看次数