[{"data":1,"prerenderedAt":151},["ShallowReactive",2],{"term-c\u002Fcron":3,"related-c\u002Fcron":137},{"id":4,"title":5,"acronym":6,"body":7,"category":119,"description":120,"difficulty":121,"extension":122,"letter":123,"meta":124,"navigation":77,"path":125,"related":126,"seo":131,"sitemap":132,"stem":135,"subcategory":6,"__hash__":136},"terms\u002Fterms\u002Fc\u002Fcron.md","Cron",null,{"type":8,"value":9,"toc":113},"minimark",[10,15,19,23,26,30,102,106,109],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Cron is a scheduler that runs your code automatically at set times. Like a kitchen timer — set it once and it fires every hour, every day at midnight, or every Monday morning. Perfect for jobs that need to happen regularly without a human pressing a button.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Cron is a Unix-based time-based job scheduler. Jobs are defined in a crontab file using a five-field expression (minute, hour, day, month, weekday) that specifies when to run a command. Modern equivalents include GitHub Actions schedules, cloud task queues, and serverless cron.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Run backup at 2am every day\n0 2 * * * \u002Fscripts\u002Fbackup.sh\n\n# Run cleanup every Sunday at midnight\n0 0 * * 0 \u002Fscripts\u002Fcleanup.sh\n","bash","",[38,39,40,49,72,79,85],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Run backup at 2am every day\n",[41,50,52,56,60,64,66,68],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","0",[41,57,59],{"class":58},"sbssI"," 2",[41,61,63],{"class":62},"sTEyZ"," *",[41,65,63],{"class":62},[41,67,63],{"class":62},[41,69,71],{"class":70},"sfazB"," \u002Fscripts\u002Fbackup.sh\n",[41,73,75],{"class":43,"line":74},3,[41,76,78],{"emptyLinePlaceholder":77},true,"\n",[41,80,82],{"class":43,"line":81},4,[41,83,84],{"class":47},"# Run cleanup every Sunday at midnight\n",[41,86,88,90,93,95,97,99],{"class":43,"line":87},5,[41,89,55],{"class":54},[41,91,92],{"class":58}," 0",[41,94,63],{"class":62},[41,96,63],{"class":62},[41,98,92],{"class":58},[41,100,101],{"class":70}," \u002Fscripts\u002Fcleanup.sh\n",[11,103,105],{"id":104},"when-youll-hear-this","When You'll Hear This",[16,107,108],{},"\"Set up a cron job to purge expired sessions every night.\" \u002F \"The cron ran but the script failed — check cron logs.\"",[110,111,112],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":114},[115,116,117,118],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":104,"depth":51,"text":105},"general","Cron is a scheduler that runs your code automatically at set times.","beginner","md","c",{},"\u002Fterms\u002Fc\u002Fcron",[127,128,129,130],"Process","Async","Deploy","Build",{"title":5,"description":120},{"changefreq":133,"priority":134},"weekly",0.7,"terms\u002Fc\u002Fcron","ZFiN5AYvnlW_u5ysZG5ovrRz1VO2RtIy-3mPyTu3H7g",[138,142,145,148],{"title":128,"path":139,"acronym":6,"category":119,"difficulty":140,"description":141},"\u002Fterms\u002Fa\u002Fasync","intermediate","Async means 'don't wait around'. You order food at a restaurant, then chat with friends instead of standing at the kitchen window staring.",{"title":130,"path":143,"acronym":6,"category":119,"difficulty":121,"description":144},"\u002Fterms\u002Fb\u002Fbuild","A build is the process of turning your development code into something a real computer or browser can run efficiently.",{"title":129,"path":146,"acronym":6,"category":119,"difficulty":121,"description":147},"\u002Fterms\u002Fd\u002Fdeploy","Deploying is taking your code from your computer and making it live on the internet for real users. Before: only you can see it.",{"title":127,"path":149,"acronym":6,"category":119,"difficulty":140,"description":150},"\u002Fterms\u002Fp\u002Fprocess","A process is a full running program with its own isolated chunk of memory.",1776518270842]