Crontab:运行 带有标志的应用程序

Crontab: running app with flags

我想知道如果应用程序使用标志,我如何 运行 带有 crontab 的应用程序:

30   0   *   *   *   root   myapp --run

我在这里搜索过类似的问题,但我没有找到任何近似的问题。

您可以使用任意多的参数,'schedule expression'之后的所有内容都被视为您的执行命令 30 0 * * * /sbin/ping -c 1 192.168.0.1 > /dev/null