SShortSingh.
Back to feed

Does */5 in crontab include minute 0? Yes, and here's why

0
·8 views

A common question is whether the */5 cron expression runs at the top of the hour, and the answer is yes: it expands to minutes 0, 5, 10 through 55, so minute 0 is included. The step syntax begins at zero across the full minute range, meaning "every five minutes" does not start at :05. The article contrasts this with 5-59/5, which starts at 5 and skips minute 0 unless that exclusion is intended. Schedules are evaluated against the host's clock and timezone, not when the entry was saved, and cron has no seconds field. The same rule applies to */10, */15, and */30, each of which includes minute 0, and a simple test line can confirm behavior on the target system.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Korean Teacher Builds Free Browser Game to Train Reading Speed With AI Help

A Korean after-school academy teacher with no professional development background created Moojung, a free, ad-free browser RPG that trains reading speed while checking comprehension. Built over a few weeks with Claude Code as a pair programmer, the game measures words per minute on each page and requires a quick comprehension check before progress counts. Players advance through 20 chapters and 14 drills, earning martial arts belts, with targets set as multiples of their own starting speed. The project uses plain HTML, CSS and JavaScript, is available in English and Korean, and is hosted on Cloudflare Pages with PWA and Android options. The creator aims for about 1.5 to 2 times starting speed with comprehension maintained, and is seeking feedback on early confusion.

0
ProgrammingDEV Community ·

Wan's 45-Second Generation Time Is Not a 45-Second Clip Length

A DEV Community analysis argues that the widely reported 45-second figure for Alibaba's expected Wan model refers to how long a clip takes to generate, not the length of the video itself. The clips are still expected to be capped at 2 to 30 seconds, matching Wan 3.0. The author distinguishes generation speed, which determines how many attempts a creator can make per hour, from clip length, which drives cost and what can be delivered in one file. Cost scales with duration and resolution, and the article compares per-clip pricing across Wan 3.0 and Seedance 2.5. It concludes that faster generation shifts bottlenecks toward prompt writing, review, and queue behaviour.

0
ProgrammingDEV Community ·

Browser-Based AI Signature Generator Creates Realistic Strokes Without Uploads

A developer has built an AI signature generator that runs entirely in the browser, avoiding both server uploads and cursive-font shortcuts. It uses a small recurrent neural network based on Alex Graves' handwriting-synthesis model to produce pen movements, which are then refined by connecting letters, adding flourishes, and varying each sample. Output is rendered as vector SVG or PNG, so names and signatures never leave the user's device. The design also keeps hosting costs flat, since inference of roughly 0.35 seconds per signature runs on each user's hardware. The model supports Latin characters only, so diacritics are stripped from names before generation.

0
ProgrammingDEV Community ·

Rotating Gemini API Keys to Survive Rate Limits in Next.js Cron Jobs

A developer running 24/7 YouTube monitoring cron jobs for Indian D2C brands hit HTTP 429 errors that crashed batch processing with a single Gemini API key. A simple retry-with-delay approach failed because the pauses exceeded Vercel and cron-job.org execution limits, and the quota exhaustion was global to that key. The fix was a round-robin pool of keys loaded from a comma-separated environment variable, which switches to the next key whenever a rate limit is detected. The author also found that rate-limit errors do not always arrive with a clean 429 status across SDK versions, so detection had to check the RESOURCE_EXHAUSTED message as well.