TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Recommended Cron Practices (SysAdvent Day 8)

29 点作者 keyist超过 15 年前

2 条评论

spuz超过 15 年前
My tip when using cron: Use comments liberally. Say what the command is doing, where to find out more information and write your name so that when I open up the crontab on some system I can actually find out what it is supposed to be doing. Comments are essential in a script which is not under any version control and is shared by many different users.
评论 #983891 未加载
sapphirecat超过 15 年前
What you really want is a scheduler that can handle all this for you, so you don't have to write the same management gunk into every script you run with cron.<p>It would also be nice to be able to express "the first Saturday of each month" for backup jobs, so you don't have to run a script every Saturday which carefully avoids doing work after the 7th.
评论 #984895 未加载