at

AT(1)                      Linux Programmer's Manual                     AT(1)



åå
       at, batch, atq, atrm - å¾ã§å®è¡ããã³ãã³ãã¸ã§ããã‐
       ã¥ã¼ã«å¥ãããããã®ãããªã¸ã§ãã®é²è¦§ã»åé¤ãè¡ãªã

æ¸å¼
       at [-V] [-q queue] [-f file] [-mldbv] TIME
       at -c job [job...]
       atq [-V] [-q queue] [-v]
       atrm [-V] job [job...]
       batch [-V] [-q queue] [-f file] [-mv] [TIME]

解説
       at 㨠batch ã¯ãæ¨æºå¥åãæå®ããããã¡ã¤ã«ããã³ãã³ããèªã¿åããå¾ã§ /bin/sh
       ã使ã£ã¦å®è¡ããã

       at      æå®ãããæå»ã«ã³ãã³ããå®è¡ããã

       atq     ãã®ã³ãã³ããèµ·åããã¦ã¼ã¶ã¼ã®ãå®è¡ããã¦ããªãã¸ã§ãã表
               示ãããã¹ã¼ãã¼ã¦ã¼ã¶ã¼ã§èµ·åããã¨ãå¨ã¦ã®ã¦ã¼ã¶ã¼
               ã®ã¸ã§ãã表示ããã

       atrm    ã¸ã§ããåé¤ããã

       batch   ã·ã¹ãã ã®è² è·ã¬ãã«ã許å¯ããã¨ãã³ãã³ããå®è¡ããã ããªãã¡ãè² è·å¹³åã
               0.8 ããã¾ã㯠atrun ã§æå®ãããå¤ãä¸åãã¨ã³ãã³ããå®è¡ããã

       at ã§ã¯ããç¨åº¦è¤é㪠TIME æå®ãã§ããããã㯠POSIX.2 æ¨æºãæ¡å¼µãããã®ã§ããã
       ã¸ã§ããå®è¡ããæå»ã¯ HH:MM ã¨ããå½¢å¼ã§æå®ã§ããã
       (ãã§ã«ãã®æå»ãéãã¦ããã¨ãã¯æ¬¡ã®æ¥ã«å®è¡ããã) ã¾ã midnight (çå¤ä¸), noon
       (æ£å), teatime (åå¾ï¼æã®ãè¶ã®æé) ã¨ãã AM , PM ãæå®ã§ããã
       ããã«ãã³ãã³ãã®å®è¡æ¥ãæå®ãããã¨ãã§ããã æ¥ä»ã®æå®ã¯ month-name day ( year
       ã追å ã§ãã) ã®ããã«ãããã¾ã㯠MMDDYY, MM/DD/YY, DD.MM.YY ãªã©ãå¯è½ã§ããã
       æ¥ä»ã®æå®ã¯ããã®æ¥ã®æå»ã®å¾ã«æå®ããªããã°ãªããªãã ã¾ã now + count time-
       units, ã¨æå®ãããã¨ã§ã³ãã³ããã©ã®ãããå¾ã«å®è¡ãããæå®ã§ããã æéã®åä½ã«ã¯
       minutes, hours, days, weeks ã使ããã ããã«ã¸ã§ããä»æ¥å®è¡ãããå ´å㯠today
       ããææ¥å®è¡ãããå ´å㯠tomorrow ããããããæå»ã®å¾ã«ä»ããã°è¯ãã

       ä¾ãã°ãä»æ¥ãã 3 æ¥å¾ã®åå¾ 4 æã«ã¸ã§ããå®è¡ããå ´å at 4pm + 3 days, ã¨ãã 7
       æ 31 æ¥ã®åå 10 æã«ã¸ã§ããå®è¡ããã¨ã㯠at 10am Jul 31 ã¨ããææ¥ã®åå 1
       æã«å®è¡ããã¨ã㯠at 1am tomorrow ã¨ããã

       æéæå®æ¹æ³ã®å³å¯ãªå®ç¾©ã¯ /usr/doc/at/timespec ã«æ¸ãã¦ããã

       at 㨠batch ã¯ãã¨ãã«æ¨æºå¥åã -f
       ãªãã·ã§ã³ã§æå®ããããã¡ã¤ã«ã®ã³ãã³ããå®è¡ããã ä½æ¥ãã£ã¬ã¯ããªãç°å¢ (ç°å¢å¤æ°
       TERM, DISPLAY, _ ãé¤ã)ã umask ã«ã¯ã at ã batch ãèµ·åãããã¨ãã®ãã®ãä¿åãããã
       su(1) ãããã¨ã®ã·ã§ã«ããèµ·åããã at (ã¾ã㯠batch )
       ã³ãã³ãã§ã¯ãã«ã¬ã³ãã®ã¦ã¼ã¶ã¼ ID ãç¨ããããã
       ã³ãã³ããå®è¡ããçµæãæ¨æºã¨ã©ã¼åºåãæ¨æºåºåãåºãã¨ãã¦ã¼ã¶ã¼ ã¯ã¡ã¼ã«ãåãåãã
       ã¡ã¼ã«ã®ééã«ã¯ /usr/bin/sendmail ãç¨ããããã at ã su(1)
       ãããã¨ã®ã·ã§ã«ããèµ·åãããã¨ãã¯ããã°ã¤ã³ã·ã§ã«ã®ãªã¼ãã¼ãã¡ã¼ã« ãåãåãã

       ã¹ã¼ãã¼ã¦ã¼ã¶ã¼ã¯ãã©ããªå ´åã§ãå¿ããã®ã³ãã³ãã使ããã¨ãã§ããã
       ä»ã®ã¦ã¼ã¶ã¼ã®ãã¼ããã·ã§ã³ã¯ /etc/at.allow 㨠/etc/at.deny ã§æå®ããã

       /etc/at.allow ãããã°ãããã«æ¸ãããã¦ã¼ã¶ã¼ã®ã¿ã at ã使ããã

       /etc/at.allow ããªããã° /etc/at.deny
       ããã§ãã¯ããããã«æ¸ããã¦ãããªããã¦ã¼ã¶ã¼ãã¹ã¦ã at ã使ããã

       ããã©ã¡ãã®ãã¡ã¤ã«ããªããã°ãã¹ã¼ãã¼ã¦ã¼ã¶ã¼ã®ã¿ at ã使ããã¨ãã§ããã

       空㮠/etc/at.deny ãããã¨ãã¯ãå¨ã¦ã®ã¦ã¼ã¶ã¼ããããã®ã³ãã³ãã使ããã¨ãã§ããã
       ãã®è¨å®ãããã©ã«ãã§ããã

ãªãã·ã§ã³
       -V      ãã¼ã¸ã§ã³æå ±ãæ¨æºã¨ã©ã¼åºåã«è¡¨ç¤ºããã

       -q queue
               ãã¥ã¼æå®ããããæå®ã¯è±åï¼æåã§è¡ãã æå¹ãªæå㯠a ãã z 㨠A ãã Z ã§ããã
               a ãã¥ã¼ã at ã®ããã©ã«ããã¥ã¼ã§ã b ãã¥ã¼ã batch ã®ããã©ã«ãã‐
               ã¥ã¼ã§ããã å¾ã®ã»ãã®æåã®ãã¥ã¼ã»ã©ããã nice ã¬ãã«ã大ãããªã
               (å®è¡ã®åªå度ãä¸ãã)ãç¹æ®ãã¥ã¼ "=" ã¯ç¾å¨å®è¡ããã¦ããã¸ã§ãã®ãã
               ã«äºç´ããã¦ããã

               大æåã®ãã¥ã¼ã§äºç´ãããã¸ã§ãã¯ã batch ã§æå®ããããã®ãã ã«æ±ãããã atq
               ã§ãã¥ã¼ãæå®ããã¨ããã®ãã¥ã¼ã«ãã¾ã£ã¦ãã æªå®è¡ã¸ã§ãã ãã表示ããã

       -m      ã¸ã§ããå®äºããã¨ãããã®ã¸ã§ãããªã«ãåºåããªãã¦ãã
               ã¦ã¼ã¶ã¼ã«å®äºéç¥ãã¡ã¼ã«ããã

       -f file æ¨æºå¥åã§ãªãã file ããã¸ã§ããèªã¿åãã

       -l      atq ã¨åãåããããã

       -d      atrm ã¨åãåããããã atq ã§æå®ãããå ´åã«ã¯ããã¥ã¼ã®ä¸ã«å‐
               å¨ãã¦ãããçµäºãããã¾ã åé¤ãã
               ã¦ããªããã¸ã§ãã表示ããããã®ã»ãã®ã³ãã³ãã§æå®ãããå ´åã¯ããã®
               ã¸ã§ããå®è¡ããæå»ã表示ããã

               æå»ã¯ "1997-02-20 14:50" ã®ãããªå½¢å¼ã§è¡¨ç¤ºãããããã ãç°å¢å¤æ°
               POSIXLY_CORRECT ãæå®ããã¦ããå ´å㯠"Thu Feb 20 14:50:00 1996"
               ã®ããã«ãªãã

       -c      ã³ãã³ãã©ã¤ã³ã§æå®ããã¸ã§ããæ¨æºåºåã«è¡¨ç¤ºããã

ãã¡ã¤ã«
       /var/spool/atjobs
       /var/spool/atspool
       /proc/loadavg
       /var/run/utmp
       /etc/at.allow
       /etc/at.deny

é¢é£é ç®
       cron(1), nice(1), sh(1), umask(2), atd(8)

ãã°
       Linux 㧠batch ãæ£ããåä½ããããã«ã¯ã /proc ã«ãã¦ã³ãããã proc
       å½¢å¼ã®ãã£ã¬ã¯ããªãå¿è¦ã§ããã

       ãã /etc/utmp ãå£ãã¦ä½¿ããªãã£ããã at ãã¸ã§ããå®è¡ããã¨ãã«ã¦ã¼ã¶ã¼ãã‐
       ã°ã¤ã³ãã¦ãªãã£ããããã¨ã ç°å¢å¤æ° LOGNAME ã§æå®ãããã¦ã¼ã¶ã¼ ID
       ã«ã¡ã¼ã«ãéãããããã®å¤æ°ãå®ç¾©ããã¦
       ããªãã£ããã空ã ã£ããããå ´åãã«ã¬ã³ãã®ã¦ã¼ã¶ã¼ ID ã«éãããã

       at 㨠batch ã®ç¾å¨ã®å®è£ã¯ãã¦ã¼ã¶ã¼ãè³æºãåãåã£ã¦ãããããªç¶æ³ä¸ã§ã¯
       é©å½ãªãã®ã§ã¯ãªãããã®ãããªå ´åã¯ä»ã®batchã·ã¹ãã ããã¨ãã° nqs
       ãªã©ãèããã¹ãã ããã

èè
       at ã¯ã»ã¼ Thomas Koenig, ig25@rz.uni-karlsruhe.de ã«ãã£ã¦æ¸ãããã




local                              Nov 1996                              AT(1)