{"id":1482,"date":"2011-08-25T22:11:24","date_gmt":"2011-08-25T14:11:24","guid":{"rendered":"http:\/\/www.jpuyy.com\/blog\/?p=1482"},"modified":"2014-06-05T11:22:53","modified_gmt":"2014-06-05T03:22:53","slug":"linux-at-command-example","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=1482","title":{"rendered":"linux at\u547d\u4ee4\u5b9e\u4f8b\u4e00\u5219"},"content":{"rendered":"<p>\u660e\u5929\u5b66\u6821\u65e9\u4e0a8\u70b9\u505c\u7535<\/p>\n<p>\u529e\u516c\u5ba4\u6709debian\u7684\u673a\u5668\uff0c\u4f46\u662f\u73b0\u5728\u8fd8\u5728\u4f7f\u7528\uff0c\u65e2\u7136\u90fd\u63a5\u5230\u4e86\u901a\u77e5\uff0c\u8ba9\u5b83\u65ad\u7535\u662f\u4e0d\u5408\u60c5\u7406\u7684<\/p>\n<p>\u8ba1\u5212\u660e\u5929\u65e93\u70b9\u5173\u673a\uff0c\u73b0\u572822\u70b9\u949f<\/p>\n<p>\u4e8e\u662f\u6267\u884c\u547d\u4ee4<\/p>\n<pre># at now +5 hours\r\n warning: commands will be executed using \/bin\/sh\r\n at&gt; \/sbin\/shutdown -h +0\r\n at&gt; &lt;EOT&gt;<\/pre>\n<pre>job 1 at Fri Aug 26 03:06:00 2011<\/pre>\n<p>\u90a3\u4e2aEOF\u662f\u7ec4\u5408\u952e ctrl+d<\/p>\n<p>at -l \u6216 atq\u67e5\u770b\u8981\u6267\u884c\u7684\u4efb\u52a1\u548c\u65f6\u95f4<\/p>\n<pre># at -l\r\n 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Fri Aug 26 03:06:00 2011 a root<\/pre>\n<p>&nbsp;<\/p>\n<p>\u663e\u793a\u4efb\u52a11\u7684\u8be6\u7ec6\u811a\u672c\uff0c\u6267\u884c<\/p>\n<pre># at -c 1<\/pre>\n<pre> #!\/bin\/sh\r\n # atrun uid=0 gid=0\r\n # mail root 0\r\n umask 22\r\n SSH_CLIENT=10.49.180.5\\ 1738\\ 22; export SSH_CLIENT\r\n SSH_TTY=\/dev\/pts\/5; export SSH_TTY\r\n USER=root; export USER\r\n LS_COLORS=no=00:fi=00:di=01\\;34:ln=01\\;36:pi=40\\;33:so=01\\;35:do=01\\;35:bd=40\\;33\\;01:cd=40\\;33\\;01:or=40\\;31\\;01:su=37\\;41:sg=30\\;43:tw=30\\;42:ow=34\\;42:st=37\\;44:ex=01\\;32:\\*.tar=01\\;31:\\*.tgz=01\\;31:\\*.svgz=01\\;31:\\*.arj=01\\;31:\\*.taz=01\\;31:\\*.lzh=01\\;31:\\*.lzma=01\\;31:\\*.zip=01\\;31:\\*.z=01\\;31:\\*.Z=01\\;31:\\*.dz=01\\;31:\\*.gz=01\\;31:\\*.bz2=01\\;31:\\*.bz=01\\;31:\\*.tbz2=01\\;31:\\*.tz=01\\;31:\\*.deb=01\\;31:\\*.rpm=01\\;31:\\*.jar=01\\;31:\\*.rar=01\\;31:\\*.ace=01\\;31:\\*.zoo=01\\;31:\\*.cpio=01\\;31:\\*.7z=01\\;31:\\*.rz=01\\;31:\\*.jpg=01\\;35:\\*.jpeg=01\\;35:\\*.gif=01\\;35:\\*.bmp=01\\;35:\\*.pbm=01\\;35:\\*.pgm=01\\;35:\\*.ppm=01\\;35:\\*.tga=01\\;35:\\*.xbm=01\\;35:\\*.xpm=01\\;35:\\*.tif=01\\;35:\\*.tiff=01\\;35:\\*.png=01\\;35:\\*.svg=01\\;35:\\*.mng=01\\;35:\\*.pcx=01\\;35:\\*.mov=01\\;35:\\*.mpg=01\\;35:\\*.mpeg=01\\;35:\\*.m2v=01\\;35:\\*.mkv=01\\;35:\\*.ogm=01\\;35:\\*.mp4=01\\;35:\\*.m4v=01\\;35:\\*.mp4v=01\\;35:\\*.vob=01\\;35:\\*.qt=01\\;35:\\*.nuv=01\\;35:\\*.wmv=01\\;35:\\*.asf=01\\;35:\\*.rm=01\\;35:\\*.rmvb=01\\;35:\\*.flc=01\\;35:\\*.avi=01\\;35:\\*.fli=01\\;35:\\*.gl=01\\;35:\\*.dl=01\\;35:\\*.xcf=01\\;35:\\*.xwd=01\\;35:\\*.yuv=01\\;35:\\*.aac=00\\;36:\\*.au=00\\;36:\\*.flac=00\\;36:\\*.mid=00\\;36:\\*.midi=00\\;36:\\*.mka=00\\;36:\\*.mp3=00\\;36:\\*.mpc=00\\;36:\\*.ogg=00\\;36:\\*.ra=00\\;36:\\*.wav=00\\;36:; export LS_COLORS\r\n MAIL=\/var\/mail\/root; export MAIL\r\n PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin; export PATH\r\n PWD=\/root; export PWD\r\n LANG=zh_CN.UTF-8; export LANG\r\n PS1=\\\\h:\\\\w\\\\\\$\\ ; export PS1\r\n SHLVL=1; export SHLVL\r\n HOME=\/root; export HOME\r\n LANGUAGE=zh_CN:zh; export LANGUAGE\r\n LS_OPTIONS=--color=auto; export LS_OPTIONS\r\n LOGNAME=root; export LOGNAME\r\n SSH_CONNECTION=10.49.180.5\\ 1738\\ xxx.xxx.xxx.xxx(ip\u5730\u5740)\\ 22; export SSH_CONNECTION\r\n cd \/root || {\r\n echo 'Execution directory inaccessible' &gt;&amp;2\r\n exit 1\r\n }\r\n \/sbin\/shutdown -h +0<\/pre>\n<p>\u5982\u679c\u5177\u4f53\u54ea\u4e00\u5929\u7684\u8bdd<\/p>\n<pre>at 21:00 08\/15\/2012<\/pre>\n<p>atrm \u5220\u9664\u961f\u5217\u4e2d\u7684\u4f5c\u4e1a<\/p>\n<p>\u67e5\u770b\u4e0a\u6b21\u5173\u673a\u65f6\u95f4<\/p>\n<pre>cat \/var\/log\/messages | grep shutting<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u660e\u5929\u5b66\u6821\u65e9\u4e0a8\u70b9\u505c\u7535 \u529e\u516c\u5ba4\u6709debian\u7684\u673a\u5668\uff0c\u4f46\u662f\u73b0\u5728\u8fd8\u5728\u4f7f\u7528\uff0c\u65e2\u7136\u90fd\u63a5\u5230\u4e86\u901a\u77e5\uff0c\u8ba9\u5b83\u65ad\u7535\u662f\u4e0d\u5408\u60c5\u7406\u7684 \u8ba1\u5212\u660e\u5929\u65e93\u70b9\u5173\u673a\uff0c\u73b0\u572822\u70b9\u949f \u4e8e\u662f\u6267\u884c\u547d\u4ee4 # at now +5 hours warning: commands will be executed using \/bin\/sh at&gt; \/sbin\/shutdown -h +0 at&gt; &lt;EOT&gt; job 1 at Fri Aug 26 03:06:00 2011 \u90a3\u4e2aEOF\u662f\u7ec4\u5408\u952e ctrl+d at -l \u6216 atq\u67e5\u770b\u8981\u6267\u884c\u7684\u4efb\u52a1\u548c\u65f6\u95f4 # at -l 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Fri Aug 26 03:06:00 2011 a root &nbsp; \u663e\u793a\u4efb\u52a11\u7684\u8be6\u7ec6\u811a\u672c\uff0c\u6267\u884c # at -c 1 #!\/bin\/sh # [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23],"class_list":["post-1482","post","type-post","status-publish","format-standard","hentry","category-linux","tag-summary"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1482"}],"version-history":[{"count":17,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions"}],"predecessor-version":[{"id":6410,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions\/6410"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}