{"id":4316,"date":"2019-07-27T00:19:22","date_gmt":"2019-07-26T16:19:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4316"},"modified":"2019-07-27T00:19:24","modified_gmt":"2019-07-26T16:19:24","slug":"at","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/at","title":{"rendered":"at\u547d\u4ee4 – \u4e00\u6b21\u6027\u5b9a\u65f6\u8ba1\u5212\u4efb\u52a1"},"content":{"rendered":"\n

at\u547d\u4ee4\u5141\u8bb8\u6307\u5b9a\u8fd0\u884c\u811a\u672c\u65f6\u95f4\uff0cat\u7684\u5b88\u62a4\u8fdb\u7a0batd\u4f1a\u4ee5\u540e\u53f0\u6a21\u5f0f\u8fd0\u884c\uff0c\u68c0\u67e5\u7cfb\u7edf\u4e0a\u7684\u4e00\u4e2a\u7279\u6b8a\u76ee\u5f55\u6765\u83b7\u53d6at\u547d\u4ee4\u7684\u63d0\u4ea4\u7684\u4f5c\u4e1a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0catd\u5b88\u62a4\u8fdb\u7a0b\u6bcf60\u79d2\u68c0\u67e5\u4e00\u6b21\u76ee\u5f55\u3002\u6709\u4f5c\u4e1a\u65f6\u4f1a\u68c0\u67e5\u4f5c\u4e1a\u8fd0\u884c\u65f6\u95f4\uff0c\u5982\u679c\u4e0e\u5f53\u524d\u65f6\u95f4\u5339\u914d\uff0c\u5219\u8fd0\u884c\u6b64\u4f5c\u4e1a\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>at [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
atq<\/td>\u67e5\u770b\u7cfb\u7edf\u4e2d\u7684\u7b49\u5f85\u4f5c\u4e1a<\/td><\/tr>
-d<\/td>\u5220\u9664\u7cfb\u7edf\u4e2d\u7684\u7b49\u5f85\u4f5c\u4e1a(\u7b49\u6548\u4e8eatrm\u547d\u4ee4)<\/td><\/tr>
-c<\/td>\u6253\u5370\u4efb\u52a1\u7684\u5185\u5bb9<\/td><\/tr>
-q<\/td>\u4f7f\u7528\u6307\u5b9a\u7684\u5217\u961f <\/td><\/tr>
-f<\/td>\u5c06\u6307\u5b9a\u6587\u4ef6\u63d0\u4ea4\u7b49\u5f85\u4f5c\u4e1a<\/td><\/tr>
-t<\/td>\u4ee5\u65f6\u95f4\u7684\u5f62\u5f0f\u63d0\u4ea4\u8fd0\u884c\u4f5c\u4e1a<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u7cfb\u7edf\u4e2d\u7684\u7b49\u5f85\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# atq<\/pre>\n\n\n\n

\u4f7f\u7528”at -d”\u6216\u8005”atrm”(\u4e8c\u8005\u540c\u6548)\u6307\u5b9aid\u6765\u5220\u9664\u7cfb\u7edf\u4e2d\u7684\u7b49\u5f85\u4f5c\u4e1a\uff0cid\u4e3a”atq”\u547d\u4ee4\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u987a\u5e8f\u6570\u5b57\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# at -d 1\n[root@linuxcool ~]# atrm 1 <\/pre>\n\n\n\n

\u5047\u8bbe\u5b58\u5728 linuxcool.sh \u811a\u672c\uff0c\u7acb\u5373\u8fd0\u884c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# at -f linuxcool.sh now<\/pre>\n\n\n\n

\u572825\u5206\u949f\u4e4b\u540e\u8fd0\u884c linuxcool.sh \u811a\u672c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# at -f linuxcool.sh now+25 min<\/pre>\n\n\n\n

\u572810:11\u8fd0\u884c linuxcool.sh \u811a\u672c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]#  at -f linuxcool.sh 10:11<\/pre>\n\n\n\n

\u57282019\u5e747\u670827\u65e5\u8fd0\u884c linuxcool.sh \u811a\u672c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]#  at -f linuxcool.sh 07\/27\/2019<\/pre>\n","protected":false},"excerpt":{"rendered":"

at\u547d\u4ee4\u5141\u8bb8\u6307\u5b9a\u8fd0\u884c\u811a\u672c\u65f6\u95f4\uff0cat\u7684\u5b88\u62a4\u8fdb\u7a0batd\u4f1a\u4ee5\u540e\u53f0\u6a21\u5f0f\u8fd0\u884c\uff0c\u68c0\u67e5\u7cfb\u7edf\u4e0a\u7684\u4e00\u4e2a\u7279\u6b8a\u76ee\u5f55\u6765\u83b7\u53d6at\u547d\u4ee4\u7684\u63d0 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4316"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4316"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4316\/revisions"}],"predecessor-version":[{"id":4347,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4316\/revisions\/4347"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}