每个星期一语法

发布于 2025-01-21 23:30:06 字数 403 浏览 2 评论 0 原文

我创建了一个cron日期,但不能确定。我想每个星期一16:25跑步。我从

25 16 * * MON

您可以在这里检查。我这次在但不起作用。根据自由形式,必须是0 25 16? * MON *,下一个执行日期是正确的。哪一个是正确的。我应该使用哪一个?

I created a cron date but couldn't be sure. I want to run every monday at 16:25. I got help from https://crontab.guru. According to crontab.guru every monday at 16:25 is

25 16 * * MON

Yo can check here https://crontab.guru/#25_16_*_*_MON . I checked the this time on https://www.freeformatter.com/cron-expression-generator-quartz.html but not working. According to freeformatter must be 0 25 16 ? * MON * and next execution dates is correct. Which one is correct. Which one should i use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情话难免假 2025-01-28 23:30:06

我相信不同的CRON实现具有不同的语法。

例如,crontab.guru指的是

crontab guru: cronitor

的cron时间表表达式的快速简单编辑器

同样,自由形式的人是指如其网站上提到的:

生成 quartz cron表达式具有易于使用的在线接口。

我应该使用哪一个?

因此,我相信这取决于您使用的是什么。对我来说,使用crontab.guru可以在MacOS上安排工作。

I believe different cron implementations have different syntax.

For example, crontab.guru refers to cronitor as mentioned on the website:

crontab guru: The quick and simple editor for cron schedule expressions by Cronitor

Similarly, freeformatter refers to Quartz as mentioned on their website:

Generate a quartz cron expression with an easy to use online interface.

Which one should I use?

So I believe that depends on what cron you're using. For me, using crontab.guru worked fine for scheduling jobs on MacOS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文