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/ar/cron-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

أدوات ذات صلة