3 ms·
Could you explain how it works? I wonder what 0 0 19 7 * means.
by rak00n 9y ago
Could you explain how it works? I wonder what 0 0 19 7 * means.
- joyeuse6701 9y agoThis is a CRON Job and the notation indicates the time and frequency that an action should take place. https://en.wikipedia.org/wiki/Cron https://en.wikipedia.org/wiki/Cron
- niklasrde 9y agoHave a look at https://en.wikipedia.org/wiki/Cron#Overview https://en.wikipedia.org/wiki/Cron#Overview. In short: At 00:00 hours on 19/07 (i.e. July 19) execute that command. The * means 'regardless of what day of the week it is'.
- CRConrad 9y agoRegardless of what year, actually. So you're reminded of your friend's birthday every year, not just this one. [Edit:] What the... Nope, sorry, seems you're right and I'm wrong -- weekly it is. [/Edit]
- deleted 9y ago[deleted]
- austincheney 9y agoIt is crontab.
- oever 9y agoit's a crontab file. '0 0 19 7 ' means 'midnight of July 19th, regardless () the weekday. It is example 2 from 'man crontab'.
- nolok 9y agoIt's a unix/linux crontab, for repetitive task. See https://en.wikipedia.org/wiki/Cron https://en.wikipedia.org/wiki/Cron It's minute, hour, day of month, month, day of week In this case, repeat every 19th of july at midnight.
- karmelapple 9y agoThis is why I like HN, and why it continues to be a much-higher-quality place to visit on the web than many other forums: there were no snarky replies, no "I can't believe you don't know cron" - just multiple friendly, helpful replies explaining exactly what this format is. What a good community.
- tobych 9y agoAgreed, though my first reaction was definitely: "I can't believe you don't know cron". I had to step back a little and remember who the audience is. Then I wrote my comment (at the same time as everyone else here did).
- HeavyStorm 9y agoActually my first thought was - that guy was a smart-ass showing off. Of course many people wouldn't know a crontab line - Windows (and I guess Mac - never had one) don't have such magical tools.
- tobych 9y agoThe file is a "cron schedule" [1]. Paste the series of numbers (and the *) into the box on the site below and you'll see it means "midnight on July 19th every year". The commenter will probably have this in their personal "crontab" file. They're emailing themselves every year on that date. [1] https://crontab.guru/ https://crontab.guru/