{"id":70,"date":"2010-12-10T10:32:02","date_gmt":"2010-12-10T02:32:02","guid":{"rendered":"http:\/\/www.microwolf.net\/?p=70"},"modified":"2010-12-10T10:32:02","modified_gmt":"2010-12-10T02:32:02","slug":"%e5%9c%a8red-hat-linux%e4%b8%ad%e8%87%aa%e5%8a%a8%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/www.microwolf.net\/?p=70","title":{"rendered":"\u5728Red Hat Linux\u4e2d\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f"},"content":{"rendered":"<table border=\"0\" width=\"100%\">\n<tr>\n<td width=\"100%\">\u672c\u6587\u4ecb\u7ecd\u51e0\u79cd\u5728linux\u7cfb\u7edf\u4e2d\u81ea\u52a8\u8fd0\u884c\u4e00\u4e2a\u7a0b\u5e8f\u7684\u65b9\u6cd5<\/p>\n<p>      1\uff0e\u5f00\u673a\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f<br \/>\n        Linux\u52a0\u8f7d\u540e, \u5b83\u5c06\u521d\u59cb\u5316\u786c\u4ef6\u548c\u8bbe\u5907\u9a71\u52a8,<br \/>\n      \u7136\u540e\u8fd0\u884c\u7b2c\u4e00\u4e2a\u8fdb\u7a0binit\u3002init\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u7ee7\u7eed\u5f15\u5bfc\u8fc7\u7a0b\uff0c<br \/>\n      \u542f\u52a8\u5176\u5b83\u8fdb\u7a0b\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4fee\u6539\u653e\u7f6e\u5728 \/etc\/rc\u6216 \/etc\/rc.d<br \/>\n      \u6216 \/etc\/rc?.d \u76ee\u5f55\u4e0b\u7684\u811a\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f init\u81ea\u52a8\u542f\u52a8\u5176\u5b83\u7a0b\u5e8f\u3002\u4f8b\u5982\uff1a\u7f16\u8f91<br \/>\n      \/etc\/rc.d\/rc.local \u6587\u4ef6\uff0c\u5728\u6587\u4ef6\u6700\u672b\u52a0\u4e0a\u4e00 \u884c\u201cxinit\u201d\u6216\u201cstartx\u201d\uff0c\u53ef\u4ee5\u5728\u5f00\u673a\u542f\u52a8\u540e\u76f4\u63a5\u8fdb\u5165X\uff0dWindow\u3002<br \/> <br \/>\n        2\uff0e\u767b\u5f55\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f<br \/>\n        \u7528\u6237\u767b\u5f55\u65f6\uff0cbash\u9996\u5148\u81ea\u52a8\u6267\u884c\u7cfb\u7edf\u7ba1\u7406\u5458\u5efa\u7acb\u7684\u5168\u5c40\u767b\u5f55script<br \/>\n      \uff1a\/ect\/profile\u3002\u7136\u540ebash\u5728\u7528\u6237\u8d77\u59cb<br \/>\n      \u76ee\u5f55\u4e0b\u6309\u987a\u5e8f\u67e5\u627e\u4e09\u4e2a\u7279\u6b8a\u6587\u4ef6\u4e2d\u7684\u4e00\u4e2a\uff1a\/.bash_profile\u3001\/.bash_login\u3001\/.profile\uff0c\u4f46\u53ea\u6267\u884c\u6700\u5148\u627e\u5230\u7684<br \/>\n      \u4e00\u4e2a\u3002<\/p>\n<p>      \u56e0\u6b64\uff0c\u53ea\u9700\u6839\u636e\u5b9e\u9645\u9700\u8981\u5728\u4e0a\u8ff0\u6587\u4ef6\u4e2d\u52a0\u5165\u547d\u4ee4\u5c31\u53ef\u4ee5\u5b9e\u73b0\u7528\u6237\u767b\u5f55\u65f6\u81ea\u52a8\u8fd0\u884c\u67d0\u4e9b\u7a0b\u5e8f\uff08\u7c7b\u4f3c\u4e8eDOS\u4e0b\u7684<br \/>\n      Autoexec.bat\uff09\u3002<br \/>\n        3\uff0e\u9000\u51fa\u767b\u5f55\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f<br \/>\n        \u9000\u51fa\u767b\u5f55\u65f6\uff0cbash\u81ea\u52a8\u6267\u884c\u4e2a\u4eba\u7684\u9000\u51fa\u767b\u5f55\u811a\u672c\/.bash_logout\u3002\u4f8b\u5982\uff0c\u5728\/.bash_logout\u4e2d\u52a0\u5165\u547d\u4ee4\u201ctar<br \/>\n      \uff0dcvzf c.source.tgz \uff0a.c\u201d\uff0c\u5219\u5728\u6bcf\u6b21\u9000\u51fa\u767b\u5f55\u65f6\u81ea\u52a8\u6267\u884c<br \/>\n      \u201ctar\u201d \u547d\u4ee4\u5907\u4efd \uff0a.c \u6587\u4ef6\u3002<br \/> <br \/>\n        4\uff0e\u5b9a\u671f\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f<br \/>\n        Linux\u6709\u4e00\u4e2a\u79f0\u4e3acrond\u7684\u5b88\u62a4\u7a0b\u5e8f\uff0c\u4e3b\u8981\u529f\u80fd\u662f\u5468\u671f\u6027\u5730\u68c0\u67e5<br \/>\n      \/var\/spool\/cron\u76ee\u5f55\u4e0b\u7684\u4e00\u7ec4\u547d\u4ee4\u6587\u4ef6\u7684\u5185<br \/>\n      \u5bb9\uff0c\u5e76\u5728\u8bbe\u5b9a\u7684\u65f6\u95f4\u6267\u884c\u8fd9\u4e9b\u6587\u4ef6\u4e2d\u7684\u547d\u4ee4\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7crontab<br \/>\n      \u547d\u4ee4\u6765\u5efa\u7acb\u3001\u4fee\u6539\u3001\u5220\u9664\u8fd9\u4e9b\u547d\u4ee4\u6587\u4ef6\u3002<br \/>\n        \u4f8b\u5982\uff0c\u5efa\u7acb\u6587\u4ef6crondFile\uff0c\u5185\u5bb9\u4e3a\u201c00 9 23 Jan \uff0a<br \/>\n      HappyBirthday\u201d\uff0c\u8fd0\u884c\u201ccrontab cronFile\u201d\u547d\u4ee4 \u540e\uff0c\u6bcf\u5f53\u5143\u670823\u65e5\u4e0a\u53489:00\u7cfb\u7edf\u81ea\u52a8\u6267\u884c\u201cHappyBirthday\u201d\u7684\u7a0b\u5e8f\uff08\u201c\uff0a\u201d\u8868\u793a\u4e0d\u7ba1\u5f53\u5929\u662f\u661f\u671f\u51e0\uff09\u3002 <\/p>\n<h3 id=\"a15991155\">\u63cf\u8ff0<\/h3>\n<p>      <a name=\"f009538802mart\"><\/a><\/p>\n<p id=\"f009538802mart\">\u8fd9\u4e2a <span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u63d0\u4ea4\u3001\u7f16\u8f91\u3001\u5217\u51fa\u6216\u9664\u53bb cron \u4f5c\u4e1a\u3002\u4e00\u4e2a cron<br \/>\n      \u4f5c\u4e1a\u662f\u4e00\u4e2a\u547d\u4ee4\uff0c\u5176\u8fd0\u884c\u662f\u7531 <span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u5728\u89c4\u5219\u7684\u8c03\u5ea6\u95f4\u9694\u6267\u884c\u7684\u3002\u8981\u63d0\u4ea4\u4e00\u4e2a cron<br \/>\n      \u4f5c\u4e1a\uff0c\u6307\u5b9a <span class=\"bold\">crontab<\/span> \u547d\u4ee4\u7528 <span class=\"bold\">-e<\/span><br \/>\n      \u6807\u5fd7\u3002<span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u8c03\u7528\u4e00\u4e2a\u7f16\u8f91\u4f1a\u8bdd\uff0c\u5141\u8bb8\u521b\u5efa\u4e00\u4e2a <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u3002\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4e3a\u6bcf\u4e2a cron<br \/>\n      \u521b\u5efa\u6761\u76ee\u3002\u6bcf\u4e2a\u6761\u76ee\u5fc5\u987b\u662f\u4e00\u79cd <span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u53ef\u63a5\u53d7\u7684\u683c\u5f0f\u3002\u8981\u5f97\u5230\u521b\u5efa\u6761\u76ee\u7684\u4fe1\u606f\uff0c\u53c2\u9605 <a href=\"http:\/\/study.chyangwa.com\/IT\/AIX\/aixcmds1\/crontab.htm#rrnpi36bmary\">crontab<br \/>\n      \u6587\u4ef6\u6761\u76ee\u683c\u5f0f<\/a>\u3002<\/p>\n<p>      <a name=\"f009538899mart\"><\/a><\/p>\n<p id=\"f009538899mart\">\u5f53\u521b\u5efa\u5b8c\u6761\u76ee\u548c\u9000\u51fa\u6587\u4ef6\u540e\uff0c<span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u5c06\u5b83\u62f7\u8d1d\u5230 <span class=\"bold\">\/var\/spool\/cron\/crontabs<\/span><br \/>\n      \u76ee\u5f55\uff0c\u5e76\u628a\u5b83\u653e\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u6b64\u6587\u4ef6\u7684\u540d\u79f0\u662f\u5f53\u524d\u7684\u7528\u6237\u540d\u3002\u5982\u679c\u4ee5\u7528\u6237\u540d\u547d\u540d\u7684\u6587\u4ef6\u5df2\u5b58\u5728\u4e8e<br \/>\n      <span class=\"bold\">crontabs<\/span> \u76ee\u5f55\u4e2d\uff0c<span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u4f1a\u8986\u76d6\u5b83\u3002<\/p>\n<p>      <a name=\"f009538998mart\"><\/a><\/p>\n<p id=\"f009538998mart\">\u540c\u6837\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a<span class=\"italic\">\u6587\u4ef6<\/span>\u53c2\u6570\u521b\u5efa<br \/>\n      <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u3002\u5982\u679c\u6b64\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u683c\u5f0f\u5fc5\u987b\u662f <span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u6240\u9700\u8981\u7684\u3002\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c<span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u5c31\u8c03\u7528\u7f16\u8f91\u5668\u3002\u5982\u679c <span class=\"bold\">EDITOR<\/span><br \/>\n      \u73af\u5883\u53d8\u91cf\u5b58\u5728\uff0c\u6b64\u547d\u4ee4\u5c31\u8c03\u7528\u5b83\u6307\u5b9a\u7684\u7f16\u8f91\u5668\u3002\u5426\u5219\uff0c<span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u8c03\u7528 <span class=\"bold\">vi<\/span> \u7f16\u8f91\u5668\u3002<\/p>\n<p>      <a name=\"f009539097mart\"><\/a><\/p>\n<p id=\"f009539097mart\">\u8981\u5217\u51fa <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u5c31\u6307\u5b9a <span class=\"bold\">crontab<\/span><br \/>\n      \u547d\u4ee4\u5e76\u91c7\u7528 <span class=\"bold\">-l<\/span><br \/>\n      \u6807\u5fd7\u3002\u8981\u9664\u53bb\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u91c7\u7528 <span class=\"bold\">-r<\/span><br \/>\n      \u6807\u5fd7\u3002<\/p>\n<p>\u53ef\u9009\u7684 <span class=\"italic\">UserName<\/span> \u53c2\u6570\u53ef\u88ab <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u7684\u6240\u6709\u8005\u6216\u8005 root<br \/>\n      \u7528\u6237\u6765\u4f7f\u7528\uff0c\u4e3a\u6307\u5b9a\u7684\u7528\u6237\u7f16\u8f91\u3001\u5217\u51fa\u3001\u9664\u53bb\u6216\u9a8c\u8bc1 cron<br \/>\n      \u4f5c\u4e1a\u7684\u72b6\u6001\u3002\u5982\u679c <span class=\"italic\">UserName<\/span><br \/>\n      \u662f\u65e0\u6548\u7684\uff0c\u5c31\u4f1a\u4ea7\u751f\u9519\u8bef\u6d88\u606f\u5e76\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<p>\u5982\u679c\u53ef\u9009\u7684 <span class=\"italic\">UserName<\/span><br \/>\n      \u53c2\u6570\u6ca1\u6709\u88ab\u6307\u5b9a\uff0c\u8fd9\u4e2a<span class=\"bold\">crontab<\/span><br \/>\n      \u6807\u5fd7\u5bf9\u4e8e root \u7528\u6237\u548c\u5f53\u524d\u7528\u6237\u53ef\u7528\u3002<\/p>\n<h4 id=\"rrnpi36bmary\">crontab \u6587\u4ef6\u6761\u76ee\u683c\u5f0f<\/h4>\n<p>      <a name=\"f00953a359mart\"><\/a><\/p>\n<p id=\"f00953a359mart\">\u4e00\u4e2a <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u5305\u542b\u6bcf\u4e2a cron<br \/>\n      \u4f5c\u4e1a\u7684\u6761\u76ee\u3002\u6761\u76ee\u7531\u6362\u884c\u5b57\u7b26\u5206\u5f00\u3002\u6bcf\u4e2a <span class=\"bold\">crontab<\/span><br \/>\n      \u6587\u4ef6\u6761\u76ee\u5305\u62ec 6<br \/>\n      \u4e2a\u5b57\u6bb5\uff0c\u5b83\u4eec\u88ab\u7a7a\u683c\u6216\u5236\u8868\u7b26\u4ee5\u4ee5\u4e0b\u683c\u5f0f\u5206\u5f00\uff1a<\/p>\n<pre class=\"xmp\">minute  hour  day_of_month  month  weekday  command<\/pre>\n<p>      <a name=\"f00953a525mart\"><\/a><\/p>\n<p id=\"f00953a525mart\">\u8fd9\u4e9b\u5b57\u6bb5\u63a5\u6536\u4ee5\u4e0b\u503c\uff1a<\/p>\n<p>      <a name=\"wq1382\"><\/a><\/p>\n<table id=\"wq1382\" rules=\"none\" width=\"100%\" summary border=\"0\" frame=\"void\">\n<tbody vAlign=\"top\">\n<tr>\n<td width=\"20%\"><span class=\"bold\">minute<\/span><\/td>\n<td width=\"80%\">0 \u5230 59<\/td>\n<\/tr>\n<tr>\n<td><span class=\"bold\">hour<\/span><\/td>\n<td>0 \u5230 23<\/td>\n<\/tr>\n<tr>\n<td><span class=\"bold\">day_of_month<\/span><\/td>\n<td>1 \u5230 31<\/td>\n<\/tr>\n<tr>\n<td><span class=\"bold\">month<\/span><\/td>\n<td>1 \u5230 12<\/td>\n<\/tr>\n<tr>\n<td><span class=\"bold\">weekday<\/span><\/td>\n<td>0 \u5230 6\uff08\u661f\u671f\u5929\u5230\u661f\u671f\u516d\uff09<\/td>\n<\/tr>\n<tr>\n<td><span class=\"bold\">command<\/span><\/td>\n<td>shell \u547d\u4ee4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>      <a name=\"f00953b011mart\"><\/a><\/p>\n<p id=\"f00953b011mart\">\u5fc5\u987b\u4e3a\u6bcf\u4e2a\u5b57\u6bb5\u6307\u5b9a\u4e00\u4e2a\u503c\u3002\u9664\u4e86 <span class=\"italic\">command<\/span><br \/>\n      \u5b57\u6bb5\uff0c\u8fd9\u4e9b\u5b57\u6bb5\u53ef\u4ee5\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>\u6307\u5b9a\u8303\u56f4\u5185\u7684\u4e00\u4e2a\u6570\u3002\u8981\u5728 5 \u6708\u8fd0\u884c\u4e00\u4e2a\u547d\u4ee4\uff0c\u5728 <span class=\"bold\">\u6708<\/span><br \/>\n          \u5b57\u6bb5\u6307\u5b9a 5\u3002 <\/p>\n<li>\u4e24\u4e2a\u88ab\u7834\u6298\u53f7\u5206\u5f00\u7684\u6570\u76ee\u8868\u660e\u4e86\u5305\u542b\u7684\u8303\u56f4\u3002\u8981\u4ece\u661f\u671f\u4e8c\u5230\u661f\u671f\u4e94\u8fd0\u884c<br \/>\n          <span class=\"bold\">cron<\/span> \u4f5c\u4e1a\uff0c\u628a 2-5 \u653e\u5230 <span class=\"bold\">weekday<\/span><br \/>\n          \u5b57\u6bb5\u4e2d\u3002 <\/p>\n<li>\u7531\u9017\u53f7\u9694\u5f00\u7684\u6570\u5b57\u5217\u8868\u3002\u8981\u5728\u4e00\u6708\u7b2c\u4e00\u5929\u548c\u6700\u540e\u4e00\u5929\u7684\u8fd0\u884c\u547d\u4ee4\uff0c\u5728<span class=\"bold\">\u65e5_of_\u6708<\/span><br \/>\n          \u5b57\u6bb5\u4e2d\u53ef\u6307\u5b9a 1,31\u3002 <\/p>\n<li><span class=\"bold\">*<\/span><br \/>\n          \uff08\u661f\u53f7\uff09\uff0c\u610f\u5473\u7740\u6240\u6709\u7684\u5141\u8bb8\u503c\u3002\u8981\u6bcf\u4e2a\u5c0f\u65f6\u8fd0\u884c\u4e00\u4e2a\u4f5c\u4e1a\uff0c\u5728\u5c0f\u65f6\u5b57\u6bb5\u6307\u5b9a\u4e00\u4e2a\u661f\u53f7\u3002<\/li>\n<li>\/\u610f\u5473\u7740\u6bcf*\u8fd0\u884c\u4e00\u6b21<br \/>\n          0 *\/2 * * * date\u8868\u793a\u6bcf\u4e24\u4e2a\u5c0f\u65f6\u8fd0\u884c\u4e00\u6b21\u3002<\/li>\n<\/ul>\n<p>\u3000<\/p>\n<blockquote><p>\n        <span class=\"bold\">\u6ce8\uff1a<\/span><br \/>\n        \u4efb\u4e00\u5b57\u7b26\u524d\u5982\u6709\u4e00\u4e2a\u53cd\u659c\u6760\u7b26\u53f7\uff08\u5305\u62ec %\uff09\u4f1a\u5f15\u8d77\u5b57\u7b26\u88ab\u5b57\u9762\u4e0a\u7684\u5904\u7406\u3002\u5929\u7684\u89c4\u8303\u662f\u7531\u4e24\u4e2a\u5b57\u6bb5\uff08\u6708\u7684\u5929\u548c\u661f\u671f\u7684\u5929\uff09\u7ec4\u6210\u7684\u3002\u5982\u679c\u6307\u5b9a\u4e24\u8005\u90fd\u4e3a\u5143\u7d20\u7684\u4e00\u4e2a\u5217\u8868\uff0c\u8fd9\u4e24\u4e2a\u5b57\u6bb5\u5747\u88ab\u5305\u542b\u5728\u5176\u4e2d\u3002\u4f8b\u5982\uff0c\u5982\u4e0b\u6761\u76ee\uff1a <\/p>\n<pre class=\"xmp\" id=\"a1811a78515mart\">0 0 1,15 * 1 command<\/pre>\n<p>        <a name=\"a1811a78555mart\"><\/a><\/p>\n<p id=\"a1811a78555mart\">\u5c06\u5728\u6bcf\u4e2a\u6708\u7684\u7b2c\u4e00\u5929\u548c\u7b2c\u5341\u4e94\u5929\u8fd0\u884c<br \/>\n        command\uff0c\u8fd8\u6709\u6bcf\u4e2a\u661f\u671f\u4e00\u3002\u8981\u4ec5\u5728\u4e00\u4e2a\u5b57\u6bb5\u4e2d\u6307\u5b9a\u5929\uff0c\u53e6\u4e00\u5b57\u6bb5\u5e94\u5305\u542b<br \/>\n        <span class=\"bold\">* <\/span>\u3002<\/p>\n<\/blockquote>\n<p>      <a name=\"d726c86545jani\"><\/a><\/p>\n<h4 id=\"d726c86545jani\">\u6307\u5b9a\u547d\u4ee4<\/h4>\n<p>      <a name=\"f00953b461mart\"><\/a><\/p>\n<p id=\"f00953b461mart\">\u8fd9\u4e2a <span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u8fd0\u884c\u547d\u540d\u4e8e\u6240\u9009\u65e5\u671f\u548c\u65f6\u95f4\u7684\u7b2c\u516d\u4e2a\u5b57\u6bb5\u4e2d\u7684\u5b57\u6bb5\u3002\u5982\u679c\u5305\u542b\u4e00\u4e2a<br \/>\n      % \uff08\u767e\u5206\u53f7\uff09\u5728\u7b2c\u516d\u5b57\u6bb5\uff0c<span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u50cf\u547d\u4ee4\u8c03\u7528\u4e00\u6837\u5904\u7406\u6240\u6709\u7684\u4efb\u52a1\uff0c\u5e76\u4f7f\u6240\u6709\u7684\u540e\u7eed\u4efb\u52a1\u5728\u6807\u51c6\u8f93\u5165\u4e0a\u53ef\u7528\uff0c\u9664\u975e\u8f6c\u4e49\u767e\u5206\u53f7<br \/>\n      (\\%)\u3002\u7a7a\u884c\u548c\u7b2c\u4e00\u4e2a\u975e\u7a7a\u5b57\u7b26\u662f\u7f16\u53f7\u6807\u8bb0\uff08#\uff09\u5c06\u88ab\u5ffd\u7565\u3002\u5982\u679c\u547d\u4ee4\u542b\u6709\u53cd\u659c\u6760<br \/>\n      (\\) \u7684\u53c2\u6570\uff0c\u53cd\u659c\u6760\u524d\u5e94\u52a0\u53e6\u4e00\u4e2a\u53cd\u659c\u6760\u3002<\/p>\n<div class=\"notetitle\" id=\"wq1383\">\n        \u6ce8:\n      <\/div>\n<div class=\"notebody\">\n        shell<br \/>\n        \u53ea\u8fd0\u884c\u8be5\u547d\u4ee4\u5b57\u6bb5\u7684\u7b2c\u4e00\u884c\u3002\u6240\u6709\u5176\u5b83\u7684\u884c\u4f5c\u4e3a\u6807\u51c6\u7684\u8f93\u5165\u5bf9\u4e8e\u547d\u4ee4\u53ef\u7528\u3002\n      <\/div>\n<p>      <a name=\"f00953b628mart\"><\/a><\/p>\n<p id=\"f00953b628mart\"><span class=\"bold\">cron<\/span> \u5b88\u62a4\u8fdb\u7a0b\u4ece <span class=\"bold\">HOME<\/span><br \/>\n      \u76ee\u5f55\u4e2d\u542f\u52a8\u4e00\u4e2a\u5b50 shell\u3002\u5982\u679c\u8c03\u5ea6\u4e00\u4e2a\u547d\u4ee4\u8fd0\u884c\uff0c\u8fd9\u65f6\u60a8\u5c1a\u672a\u767b\u5f55\uff0c\u5e76\u4e14\u5e0c\u671b\u5728<span class=\"bold\">.profile<\/span><br \/>\n      \u6587\u4ef6\u4e2d\u7684\u547d\u4ee4\u8fd0\u884c\uff0c\u8fd9\u4e2a\u547d\u4ee4\u5fc5\u987b\u660e\u786e\u7684\u8bfb\u53d6\u60a8\u7684 <span class=\"bold\">.profile<\/span><br \/>\n      \u6587\u4ef6\u3002<\/p>\n<p>      <a name=\"f00953b730mart\"><\/a><\/p>\n<p id=\"f00953b730mart\"><span class=\"bold\">cron<\/span><br \/>\n      \u5b88\u62a4\u8fdb\u7a0b\u4e3a\u6bcf\u4e2a shell \u63d0\u4f9b\u4e86\u4e00\u4e2a\u7f3a\u7701\u7684\u73af\u5883\uff0c\u5b9a\u4e49\u4e86 <span class=\"bold\">HOME\uff0c<br \/>\n      LOGNAME\uff0c SHELL<\/span> (=<span class=\"bold\">\/usr\/bin\/sh<\/span>) \u548c <span class=\"bold\">PATH<\/span><br \/>\n      (=<span class=\"bold\">\/usr\/bin<\/span>)\u3002<\/p>\n<p id=\"f00953b730mart\">\u4f8b\uff1a<\/p>\n<p id=\"f00953b730mart\">SHELL=\/bin\/bash<br \/>\n      PATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin<br \/>\n      MAILTO=root<br \/>\n      HOME=\/<br \/>\n      #run-parts<br \/>\n      0 9 *\/1 * * \/etc\/rc.d\/tc.down<\/p>\n<p>\n        5\uff0e\u5b9a\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f\u4e00\u6b21<br \/>\n        \u5b9a\u65f6\u6267\u884c\u547d\u4ee4at \u4e0ecrond<br \/>\n      \u7c7b\u4f3c\uff08\u4f46\u5b83\u53ea\u6267\u884c\u4e00\u6b21\uff09\uff1a\u547d\u4ee4\u5728\u7ed9\u5b9a\u7684\u65f6\u95f4\u6267\u884c\uff0c\u4f46\u4e0d\u81ea\u52a8\u91cd\u590d\u3002at\u547d\u4ee4\u7684\u4e00<br \/>\n      \u822c\u683c\u5f0f\u4e3a\uff1aat [ \uff0df file ] time \uff0c\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u6267\u884cfile\u6587\u4ef6\u4e2d\u6240\u7ed9\u51fa\u7684\u6240\u6709\u547d\u4ee4\u3002\u4e5f\u53ef\u76f4\u63a5\u4ece\u952e\u76d8\u8f93\u5165\u547d<br \/>\n      \u4ee4\uff1a<br \/>\n        \uff04 at 12:00<br \/> <br \/>\n        at>mailto Roger \uff0ds \u2033Have a lunch\u2033 < plan.txt<br \/> <br \/>\n        at>Ctr\uff0dD<br \/>\n        Job 1 at 2000\uff0d11\uff0d09 12:00<br \/> <br \/>\n        2000\uff0d11\uff0d09 12:00\u65f6\u5019\u81ea\u52a8\u53d1\u4e00\u6807\u9898\u4e3a\u201cHave a lunch\u201d\uff0c\u5185\u5bb9\u4e3aplan.txt\u6587\u4ef6\u5185\u5bb9\u7684\u90ae\u4ef6\u7ed9Roger\u3002<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u51e0\u79cd\u5728linux\u7cfb\u7edf\u4e2d\u81ea\u52a8\u8fd0\u884c\u4e00\u4e2a\u7a0b\u5e8f\u7684\u65b9\u6cd5 1\uff0e\u5f00\u673a\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f Linux\u52a0\u8f7d\u540e, \u5b83\u5c06\u521d\u59cb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/70"}],"collection":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":1,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":71,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/71"}],"wp:attachment":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}