{"id":476476,"date":"2023-08-09T07:29:55","date_gmt":"2023-08-09T07:29:55","guid":{"rendered":""},"modified":"2023-09-05T11:12:51","modified_gmt":"2023-09-05T11:12:51","slug":"cron","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/jp\/wiki\/cron\/","title":{"rendered":"\u30af\u30ed\u30f3"},"content":{"rendered":"<p>Cron \u306f\u3001Unix \u7cfb\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u306b\u542b\u307e\u308c\u308b\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30b8\u30e7\u30d6 \u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0 \u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u56fa\u5b9a\u306e\u6642\u523b\u3001\u65e5\u4ed8\u3001\u307e\u305f\u306f\u9593\u9694\u3067\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u30b8\u30e7\u30d6 (\u30b3\u30de\u30f3\u30c9\u307e\u305f\u306f\u30b9\u30af\u30ea\u30d7\u30c8) \u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>Cron \u306e\u8d77\u6e90\u3068\u521d\u671f\u306e\u6b74\u53f2<\/h2>\n<p>cron \u306e\u6700\u521d\u306e\u5b9f\u88c5\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3 7 Unix \u306b\u9061\u308a\u307e\u3059\u3002 \u300c\u30af\u30ed\u30f3\u300d\u3068\u3044\u3046\u7528\u8a9e\u306f\u3001\u30ae\u30ea\u30b7\u30e3\u8a9e\u3067\u6642\u9593\u3092\u610f\u5473\u3059\u308b\u300c\u30af\u30ed\u30ce\u30b9\u300d\u306b\u7531\u6765\u3057\u3066\u3044\u307e\u3059\u3002 1979 \u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Unix \u306b\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u9593\u9694\u3067\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3059\u308b\u5358\u7d14\u306a cron \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a\u307e\u3057\u305f\u3002 Cron \u306e\u6a5f\u80fd\u306f\u3001\u305d\u306e\u5f8c 1987 \u5e74\u306b Paul Vixie \u306b\u3088\u3063\u3066\u62e1\u5f35\u3055\u308c\u307e\u3057\u305f\u3002Vixie Cron \u3068\u3057\u3066\u77e5\u3089\u308c\u308b\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u73fe\u5728\u6700\u3082\u4e00\u822c\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308a\u3001\u4eba\u3005\u304c\u300cCron\u300d\u306b\u3064\u3044\u3066\u8a00\u53ca\u3059\u308b\u3068\u304d\u306b\u4e00\u822c\u306b\u53c2\u7167\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<h2>Cron \u306e\u6982\u5ff5\u306e\u62e1\u5f35<\/h2>\n<p>Cron \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3084\u7ba1\u7406\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u6c4e\u7528\u6027\u306b\u3088\u308a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3084\u5b9a\u671f\u7684\u306a\u96fb\u5b50\u30e1\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306a\u3069\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 cron \u74b0\u5883\u306f\u3001cron \u30b8\u30e7\u30d6\u304c\u901a\u5e38\u306e\u30b7\u30a7\u30eb\u74b0\u5883\u304b\u3089\u5b9f\u884c\u3055\u308c\u308b\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5404\u30e6\u30fc\u30b6\u30fc\u306f\u72ec\u81ea\u306e crontab \u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u3001\u3053\u308c\u3089\u306f \/var\/spool\/ \u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u304c\u3001\u76f4\u63a5\u7de8\u96c6\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u305b\u3093\u3002 cron \u5f0f\u306e\u69cb\u6587\u306f\u3001Unix cron \u69cb\u6587\u3068\u3001cron \u5f0f\u69cb\u6587\u307e\u305f\u306f Quartz cron \u69cb\u6587\u3068\u3057\u3066\u77e5\u3089\u308c\u308b\u3088\u308a\u8907\u96d1\u306a\u69cb\u6587\u306e 2 \u3064\u306e\u4e3b\u306a\u30bf\u30a4\u30d7\u306e\u69cb\u6587\u306b\u5206\u985e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Cron \u306e\u5185\u90e8\u69cb\u9020\u3068\u305d\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>Cron \u306f\u3001\u300ccrontab\u300d\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u77e5\u3089\u308c\u308b\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u5f37\u529b\u306a\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u57fa\u3065\u3044\u3066\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u5b9f\u884c\u3059\u308b\u30bf\u30b9\u30af\u3054\u3068\u306b 1 \u884c\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u30015 \u3064\u306e\u6642\u523b\u3068\u65e5\u4ed8\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u69cb\u6210\u3055\u308c\u3001\u305d\u306e\u5f8c\u306b\u6307\u5b9a\u3057\u305f\u6642\u9593\u306b\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u7d9a\u304d\u307e\u3059\u3002<\/p>\n<p>5 \u3064\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u6b21\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u6b63\u6642\u5f8c\u306e\u5206 (0 \uff5e 59)<\/li>\n<li>1 \u65e5\u306e\u6642\u9593 (0 \uff5e 23)<\/li>\n<li>\u6708\u306e\u65e5\u6570 (1 \uff5e 31)<\/li>\n<li>1 \u5e74\u306e\u6708\u6570 (1 \uff5e 12)<\/li>\n<li>\u66dc\u65e5 (0 \uff5e 7\u30010 \u3068 7 \u306f\u65e5\u66dc\u65e5)<\/li>\n<\/ol>\n<p>\u30b3\u30de\u30f3\u30c9 \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u3001\u6700\u521d\u306e 5 \u3064\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u306b\u5b9f\u884c\u3055\u308c\u308b\u30bf\u30b9\u30af\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<h2>Cron \u306e\u4e3b\u306a\u6a5f\u80fd<\/h2>\n<p>Cron \u306e\u4e3b\u306a\u6a5f\u80fd\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u3053\u308c\u306b\u3088\u308a\u3001\u30bf\u30b9\u30af\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9a\u671f\u7684\u306b\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u3055\u307e\u3056\u307e\u306a\u6642\u9593\u5358\u4f4d\u3067\u30bf\u30b9\u30af (\u30b9\u30af\u30ea\u30d7\u30c8\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9) \u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u67d4\u8edf\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/li>\n<li>\u5404\u30e6\u30fc\u30b6\u30fc\u306f\u72ec\u81ea\u306e crontab \u30d5\u30a1\u30a4\u30eb\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>Cron \u30b8\u30e7\u30d6\u306f\u3001\u5206\u3001\u6642\u9593\u3001\u66dc\u65e5\u3001\u65e5\u3001\u6708\u3054\u3068\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>Cron \u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30b7\u30b9\u30c6\u30e0 \u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u52b9\u679c\u7684\u306a\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2>\u30af\u30ed\u30f3\u306e\u7a2e\u985e<\/h2>\n<p>Cron \u30b8\u30e7\u30d6\u306f\u4e00\u822c\u306b\u6b21\u306e\u3088\u3046\u306b\u5206\u985e\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30bf\u30a4\u30d7<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30ea\u30d6\u30fc\u30c8<\/td>\n<td>\u8d77\u52d5\u6642\u306b 1 \u56de\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30a2\u30ca\u30af\u30ed\u30f3<\/td>\n<td>\u65e5\u5358\u4f4d\u3067\u6307\u5b9a\u3055\u308c\u305f\u9593\u9694\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30f3<\/td>\n<td>\u3053\u308c\u3089\u306f \/etc\/crontab \u304a\u3088\u3073 \/etc\/cron.d\/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u9069\u7528\u3055\u308c\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc Cron<\/td>\n<td>\u5404\u30e6\u30fc\u30b6\u30fc\u306f\u72ec\u81ea\u306e\u3082\u306e\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u3001\/var\/spool\/cron\/crontabs\/ \u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Cron \u306e\u4f7f\u7528\u6cd5\u3001\u554f\u984c\u3001\u304a\u3088\u3073\u305d\u306e\u89e3\u6c7a\u7b56<\/h2>\n<p>Cron \u306f\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u306e\u306b\u4fbf\u5229\u3067\u3059\u304c\u3001\u614e\u91cd\u306b\u4f7f\u7528\u3057\u306a\u3044\u3068\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001cron \u30b8\u30e7\u30d6\u306e\u69cb\u6210\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u3068\u3001CPU \u4f7f\u7528\u7387\u304c\u9ad8\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001cron \u306f\u3001\u30b8\u30e7\u30d6\u306e\u51fa\u529b\u304c\u3042\u308c\u3070\u3001\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u306e\u307f\u96fb\u5b50\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u5b9a\u671f\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\u3068\u3001\u30a8\u30e9\u30fc\u304c\u898b\u9003\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u554f\u984c\u306b\u5bfe\u3059\u308b\u4e00\u822c\u7684\u306a\u89e3\u6c7a\u7b56\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5b9a\u671f\u7684\u306b CPU \u4f7f\u7528\u7387\u304c\u9ad8\u3044\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u4e0d\u8981\u306a\u30b8\u30e7\u30d6\u3092\u518d\u69cb\u6210\u307e\u305f\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/li>\n<li>cron \u30b8\u30e7\u30d6\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u524d\u306b\u3001\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u6b63\u3057\u304f\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li>\u51fa\u529b\u3092\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u304b\u3001\u30e1\u30fc\u30eb \u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3001cron \u30b8\u30e7\u30d6\u3092\u3088\u308a\u52b9\u679c\u7684\u306b\u76e3\u8996\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u985e\u4f3c\u30c4\u30fc\u30eb\u3068\u306e\u6bd4\u8f03<\/h2>\n<p>cron \u306b\u4f3c\u305f\u30bf\u30b9\u30af \u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306b\u306f\u3001anacron \u3084 systemd \u30bf\u30a4\u30de\u30fc\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u4e3b\u306a\u9055\u3044\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9053\u5177<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30af\u30ed\u30f3<\/td>\n<td>\u4e00\u65e5\u306e\u7279\u5b9a\u306e\u6642\u9593\u306b\u5b9f\u884c\u3055\u308c\u308b\u30bf\u30b9\u30af\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u3055\u308c\u306a\u304b\u3063\u305f\u30b8\u30e7\u30d6\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30a2\u30ca\u30af\u30ed\u30f3<\/td>\n<td>\u6bce\u65e5\/\u6bce\u9031\/\u6bce\u6708 1 \u56de\u5b9f\u884c\u3055\u308c\u308b\u30bf\u30b9\u30af\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u30de\u30b7\u30f3\u304c\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u623b\u3063\u305f\u3068\u304d\u306b\u3001\u5b9f\u884c\u3055\u308c\u306a\u304b\u3063\u305f\u30b8\u30e7\u30d6\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30b7\u30b9\u30c6\u30e0\u30c9<\/td>\n<td>\u3088\u308a\u591a\u304f\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3001\u6700\u65b0\u306e Linux \u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u3046\u307e\u304f\u7d71\u5408\u3067\u304d\u308b\u305f\u3081\u3001\u3088\u308a\u8907\u96d1\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5c06\u6765\u5c55\u671b\u3068\u95a2\u9023\u6280\u8853<\/h2>\n<p>Unix \u30d9\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u9032\u5316\u3057\u7d9a\u3051\u308b\u306b\u3064\u308c\u3066\u3001Cron \u3082\u9032\u5316\u3057\u307e\u3059\u3002systemd \u306e\u3088\u3046\u306a\u3088\u308a\u9ad8\u5ea6\u306a\u30bf\u30b9\u30af \u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u304c\u767b\u5834\u3057\u305f\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001Cron \u306f\u30b7\u30f3\u30d7\u30eb\u3055\u3068\u30d1\u30ef\u30fc\u306b\u3088\u308a\u3001\u4eca\u65e5\u3067\u3082\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3078\u306e\u6700\u8fd1\u306e\u50be\u5411\u3082\u3001Cron \u306e\u65b0\u3057\u3044\u4f7f\u7528\u65b9\u6cd5\u3092\u3082\u305f\u3089\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4eba\u6c17\u306e\u3042\u308b\u30b3\u30f3\u30c6\u30ca \u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308b Kubernetes \u306b\u306f\u3001Unix \u30d9\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u306e Cron \u306b\u4f3c\u305f CronJobs \u3068\u3057\u3066\u77e5\u3089\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3068Cron<\/h2>\n<p>\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u3092 Cron \u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u52b9\u679c\u7684\u306b\u4f7f\u7528\u3059\u308b\u3068\u3001\u7279\u5b9a\u306e\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067 Web \u30b5\u30a4\u30c8\u307e\u305f\u306f API \u306b\u5b9a\u671f\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u5834\u5408\u3001\u6307\u5b9a\u3057\u305f\u9593\u9694\u3067\u305d\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b cron \u30b8\u30e7\u30d6\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Cron \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30d7\u30ed\u30ad\u30b7\u3092\u6307\u5b9a\u3057\u305f\u9593\u9694\u3067\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u3001\u5358\u4e00\u306e\u30d7\u30ed\u30ad\u30b7\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b\u53ef\u80fd\u6027\u3092\u6e1b\u3089\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001OneProxy \u306e\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d3\u30b9\u306f\u3001\u30c7\u30fc\u30bf \u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3001\u30bd\u30fc\u30b7\u30e3\u30eb \u30e1\u30c7\u30a3\u30a2 \u30bf\u30b9\u30af\u306e\u81ea\u52d5\u5316\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092 Cron \u3067\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u30ea\u30f3\u30af<\/h2>\n<p>Cron \u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html\" target=\"_new\" rel=\"noopener nofollow\">Crontab \u30de\u30f3\u30da\u30fc\u30b8<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Cron\" target=\"_new\" rel=\"noopener nofollow\">\u30a6\u30a3\u30ad\u30da\u30c7\u30a3\u30a2\u306e\u30af\u30ed\u30f3<\/a><\/li>\n<li><a href=\"https:\/\/www.freebsd.org\/cgi\/man.cgi?query=cron&amp;sektion=8\" target=\"_new\" rel=\"noopener nofollow\">\u30f4\u30a3\u30af\u30b7\u30fc\u30fb\u30af\u30ed\u30f3<\/a><\/li>\n<\/ul>","protected":false},"featured_media":468042,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-476476","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Cron: A Comprehensive Guide<\/mark>","faq_items":[{"question":"What is Cron?","answer":"<p>Cron is a time-based job scheduling service found in Unix-like operating systems, which allows users to automate tasks to run periodically at fixed times, dates, or intervals.<\/p>"},{"question":"Where did Cron originate from?","answer":"<p>The first implementation of Cron dates back to Version 7 Unix, released in 1979. The term \"cron\" comes from the Greek word for time, \"chronos\". Cron's functionality was later expanded by Paul Vixie in 1987, with this version commonly referred to as \"Cron\" today.<\/p>"},{"question":"How does Cron work?","answer":"<p>Cron operates through a configuration file known as a \"crontab\" file. This file contains one line for each task to be run, consisting of five time and date fields, followed by a command to be run at the specified times.<\/p>"},{"question":"What are the key features of Cron?","answer":"<p>Cron allows tasks to run automatically in the background at regular intervals. It provides a flexible platform to schedule tasks with a variety of time units. Each user can have their own crontab file, and Cron jobs can be scheduled by the minute, hour, day of the week, day of the month, and month of the year.<\/p>"},{"question":"What types of Cron exist?","answer":"<p>Cron jobs can generally be categorized as Reboot, Anacron, System Cron, and User Cron.<\/p>"},{"question":"What are some common problems and solutions with using Cron?","answer":"<p>Common problems with using Cron include high CPU usage and overlooked errors due to Cron only emailing the output of its jobs. These issues can be mitigated by regularly checking for high CPU usage, ensuring commands and scripts run correctly before setting them as cron jobs, and setting up a mail server or redirecting output to a logfile for more effective monitoring.<\/p>"},{"question":"How does Cron compare to other similar tools?","answer":"<p>Cron is suitable for tasks to be run at specific times and does not run missed jobs. In contrast, Anacron is suitable for tasks to be run once daily\/weekly\/monthly and will run missed jobs when the machine is back online. Systemd offers more options and integrates well with modern Linux distributions, making it suitable for more complex scenarios.<\/p>"},{"question":"What is the future of Cron and related technologies?","answer":"<p>As Unix-based systems evolve, so does Cron. The trend towards containerized applications and microservices architectures has introduced new ways to use Cron, like Kubernetes' feature known as CronJobs.<\/p>"},{"question":"How can proxy servers be used with Cron?","answer":"<p>Proxy servers can be used with Cron to automate tasks, such as accessing a website or API through a proxy server at specified intervals. Cron can also be used to rotate proxies at intervals, reducing the chance of any single proxy being blocked.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki\/476476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki\/476476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/media\/468042"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/media?parent=476476"}],"curies":[{"name":"\u3046\u30fc\u3093","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}