Monu Tools

מחולל ביטויי cron

בנייה ובדיקה של ביטויי cron. בחרו תבנית מוכנה או ערכו את חמשת השדות, וראו את זמני ההרצה הבאים באזור הזמן שלכם. רץ כולו בדפדפן שלכם.

כיצד להשתמש במחולל cron

  1. 01

    בחרו תבנית מוכנה או הקלידו ביטוי cron בחמשת השדות.

  2. 02

    ראו כל שדה מתויג ומאומת תוך כדי עריכה.

  3. 03

    קראו את זמני ההרצה הבאים, המחושבים באזור הזמן המקומי שלכם.

What a cron expression is

A cron expression is a compact string of five fields that tells a scheduler when to run a task: minute, hour, day of month, month and day of week. It is powerful but easy to get wrong, and a misplaced asterisk can mean a job fires every minute instead of once a day.

How the generator helps

Start from a common preset (every hour, every day at midnight, every Monday at 9 AM) or build a custom expression field by field, with each field labeled and validated as you type.

Crucially, it previews the next five run times in your browser's local time zone, so you can confirm the schedule actually does what you intended before you deploy it.

Field syntax and values

Each field accepts more than a single value: an asterisk means every value, a list like MON,WED,FRI picks several, a range like MON-FRI spans days, and a step like */15 in the minute field runs at 0, 15, 30 and 45 past the hour.

The output works with standard cron on Linux and macOS, crontab, AWS EventBridge, GitHub Actions schedules and most job-scheduling libraries.

Gotchas to watch for

One classic trap is setting both day-of-month and day-of-week: standard cron then runs when either matches, not both, so a job can fire more often than expected. Leaving one of the two as an asterisk avoids the surprise.

This tool targets standard five-field cron, so platform extensions like a seconds field or @reboot are not produced here. Remember too that the job runs in the executing server's time zone, which may differ from the local preview.

שאלות נפוצות

מה המשמעות של חמשת השדות?

לפי הסדר: דקה, שעה, יום בחודש, חודש ויום בשבוע. כוכבית פירושה כל ערך, כך ש-* * * * * רץ בכל דקה.

כיצד אני מריץ משימה כל 15 דקות?

השתמשו בערך צעד בשדה הדקה: */15 * * * * רץ בדקה 0, 15, 30 ו-45 של כל שעה.

מה מקבל שדה היום בשבוע?

מספרים 0 עד 6 (ראשון הוא 0, וגם 7 פירושו ראשון) או שמות בני שלוש אותיות כמו MON. אפשר להשתמש בטווחים (MON-FRI) וברשימות (MON,WED,FRI).

מדוע הוא מתאים ליותר ימים ממה שאני מצפה?

כשגם היום-בחודש וגם היום-בשבוע מוגדרים, cron סטנדרטי רץ בכל אחת מההתאמות, לא בשתיהן יחד. השאירו אחד מהם כ-* כדי להימנע מהפתעות.

האם הוא תומך בשניות או בתחביר לא סטנדרטי?

המחולל הזה מכוון ל-cron סטנדרטי בן חמישה שדות. חלק מהפלטפורמות מוסיפות שדה שניות או הרחבות כמו @reboot, שאינן מיוצרות כאן.

באיזה אזור זמן ההרצות?

התצוגה המקדימה מציגה את ההרצות הבאות באזור הזמן המקומי של הדפדפן שלכם. השרת שמריץ את המשימה משתמש באזור משלו, לכן ודאו שזה תואם.

מקורות

הטמע את הכלי הזה

הוסף את הכלי הזה לאתר שלך. העתק את קטע הקוד שלהלן; הוא מתעדכן אוטומטית.

<iframe src="https://monu.tools/embed/he/cron-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

כלים קשורים