1 .\" .Id $Id: at.1,v 1.4 2003/12/16 13:28:25 nakano Exp $
3 .\" Original man-page is part of at-3.1.7.
5 .\" Copyright: 1993, 1994, 1995, 1996, 1997 (c) Thomas Koenig
6 .\" 1993 (c) David Parsons
8 .\" This program is distributed in the hope that it will be useful, but
9 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
10 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 .\" General Public License for more details.
13 .\" Japanese Version Copyright (c) 1996 Tanoshima Hidetohsi
14 .\" all rights reserved.
15 .\" Dec 31, 1996 Tanoshima Hidetoshi <tano@sainet.or.jp>
17 .\" Modified to reflect changes at-3.1.7
18 .\" Mon 22 Jun 1998, by NAKANO Takeo <nakano@apm.seikei.ac.jp>
20 .\" Modified to fix two errors(section name, OKURI-GANA)
21 .\" Mon 9 Aug 1999, by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
23 .TH AT 1 "Nov 1996" local "Linux Programmer's Manual"
26 .\"O at, batch, atq, atrm \- queue, examine or delete jobs for later execution
27 at, batch, atq, atrm \- ¸å¤Ç¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¥¸¥ç¥Ö¤ò¥¥å¡¼¤ËÆþ¤ì¤¿¤ê¡¢¤½¤Î¤è¤¦¤Ê¥¸¥ç¥Ö¤Î±ÜÍ÷¡¦ºï½ü¤ò¹Ô¤Ê¤¦
66 .\"O read commands from standard input or a specified file which are to
67 .\"O be executed at a later time, using
72 ¤Ï¡¢É¸½àÆþÎϤä»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤«¤é¥³¥Þ¥ó¥É¤òÆɤ߼è¤ê¡¢¸å¤Ç
77 .\"O executes commands at a specified time.
78 »ØÄꤵ¤ì¤¿»þ¹ï¤Ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£
81 .\"O lists the user's pending jobs, unless the user is the superuser; in that
82 .\"O case, everybody's jobs are listed.
83 ¤³¤Î¥³¥Þ¥ó¥É¤òµ¯Æ°¤·¤¿¥æ¡¼¥¶¡¼¤Î¡¢¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¥¸¥ç¥Ö¤òɽ
84 ¼¨¤¹¤ë¡£¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤Çµ¯Æ°¤¹¤ë¤È¡¢Á´¤Æ¤Î¥æ¡¼¥¶¡¼
92 .\"O executes commands when system load levels permit; in other words, when the load average
93 .\"O drops below 0.8, or the value specified in the invocation of
95 ¥·¥¹¥Æ¥à¤ÎÉé²Ù¥ì¥Ù¥ë¤¬µö²Ä¤·¤¿¤È¤¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£
96 ¤¹¤Ê¤ï¤Á¡¢Éé²ÙÊ¿¶Ñ¤¬ 0.8 ¤«¡¢¤Þ¤¿¤Ï
98 ¤Ç»ØÄꤵ¤ì¤¿Ãͤò²¼²ó¤ë¤È¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£
101 .\"O allows fairly complex time
102 .\"O specifications, extending the POSIX.2 standard. It accepts times
105 .\"O to run a job at a specific time of day.
106 .\"O (If that time is already past, the next day is assumed.)
110 »ØÄ꤬¤Ç¤¤ë¡£¤³¤ì¤Ï POSIX.2 ɸ½à¤ò³ÈÄ¥¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
111 ¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë»þ¹ï¤Ï
113 ¤È¤¤¤¦·Á¼°¤Ç»ØÄê¤Ç¤¤ë¡£
114 (¤¹¤Ç¤Ë¤½¤Î»þ¹ï¤ò²á¤®¤Æ¤¤¤ë¤È¤¤Ï¼¡¤ÎÆü¤Ë¼Â¹Ô¤¹¤ë¡£)
115 .\"O You may also specify
121 .\"O and you can have a time-of-day suffixed with
125 .\"O for running in the morning or the evening.
132 (¸á¸å£´»þ¤Î¤ªÃã¤Î»þ´Ö)
138 .\"O You can also say what day the job will be run,
139 .\"O by giving a date in the form
142 .\"O with an optional
144 .\"O or giving a date of the form
150 ¤µ¤é¤Ë¡¢¥³¥Þ¥ó¥É¤Î¼Â¹ÔÆü¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë¡£
156 ¤âÄɲäǤ¤ë) ¤Î¤è¤¦¤Ë¤¹¤ë¡£¤Þ¤¿¤Ï
161 .\"O The specification of a date
163 .\"O follow the specification of the time of day.
164 ÆüÉդλØÄê¤Ï¡¢¤½¤ÎÆü¤Î»þ¹ï¤Î\fI¸å¤Ë\fP»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
165 .\"O You can also give times like
170 .\"O where the time-units can be
176 .\"O and you can tell
178 .\"O to run the job today by suffixing the time with
180 .\"O and to run the job tomorrow by suffixing the time with
187 ¤È»ØÄꤹ¤ë¤³¤È¤Ç¥³¥Þ¥ó¥É¤ò¤É¤Î¤¯¤é¤¤¸å¤Ë¼Â¹Ô¤¹¤ë¤«»ØÄê¤Ç¤¤ë¡£
194 ¤µ¤é¤Ë¥¸¥ç¥Ö¤òº£Æü¼Â¹Ô¤·¤¿¤¤¾ì¹ç¤Ï
196 ¤ò¡¢ÌÀÆü¼Â¹Ô¤·¤¿¤¤¾ì¹ç¤Ï
198 ¤ò¡¢¤½¤ì¤¾¤ì»þ¹ï¤Î¸å¤ËÉÕ¤±¤ì¤ÐÎɤ¤¡£
200 .\"O For example, to run a job at 4pm three days from now, you would do
201 .\"O .B at 4pm + 3 days,
202 .\"O to run a job at 10:00am on July 31, you would do
203 .\"O .B at 10am Jul 31
204 .\"O and to run a job at 1am tomorrow, you would do
205 .\"O .B at 1am tomorrow.
206 Î㤨¤Ð¡¢º£Æü¤«¤é 3 Æü¸å¤Î¸á¸å 4 »þ¤Ë¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë¾ì¹ç
208 ¤È¤·¡¢ 7 ·î 31 Æü¤Î¸áÁ° 10 »þ¤Ë¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë¤È¤¤Ï
210 ¤È¤·¡¢ÌÀÆü¤Î¸áÁ° 1 »þ¤Ë¼Â¹Ô¤¹¤ë¤È¤¤Ï
214 .\"O The exact definition of the time specification can be found in
215 .\"O .IR /usr/doc/at/timespec .
216 »þ´Ö»ØÄêÊýË¡¤Î¸·Ì©¤ÊÄêµÁ¤Ï
217 .I /usr/doc/at/timespec
221 .\"O .BR at " and " batch ,
222 .\"O commands are read from standard input or the file specified
225 .\"O option and executed.
229 ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£
230 .\"O The working directory, the environment (except for the variables
235 .\"O and the umask are retained from the time of invocation.
236 ºî¶È¥Ç¥£¥ì¥¯¥È¥ê¡¢´Ä¶ (´Ä¶ÊÑ¿ô
237 .BR TERM ", " DISPLAY ", " _
238 ¤ò½ü¤¯)¡¢ umask ¤Ë¤Ï¡¢
240 ¤¬µ¯Æ°¤µ¤ì¤¿¤È¤¤Î¤â¤Î¤¬Êݸ¤µ¤ì¤ë¡£
245 .\"O command invoked from a
247 .\"O shell will retain the current userid.
249 ¤·¤¿¤¢¤È¤Î¥·¥§¥ë¤«¤éµ¯Æ°¤µ¤ì¤¿
253 ¥³¥Þ¥ó¥É¤Ç¤Ï¡¢¥«¥ì¥ó¥È¤Î¥æ¡¼¥¶¡¼ ID ¤¬ÍѤ¤¤é¤ì¤ë¡£
254 .\"O The user will be mailed standard error and standard output from his
255 .\"O commands, if any.
256 ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿·ë²Ì¡¢É¸½à¥¨¥é¡¼½ÐÎϤäɸ½à½ÐÎϤ¬½Ð¤ë¤È¡¢¥æ¡¼¥¶¡¼
258 .\"O Mail will be sent using the command
259 .\"O .BR /usr/sbin/sendmail .
261 .BR /usr/bin/sendmail
265 .\"O is executed from a
267 .\"O shell, the owner of the login shell will receive the mail.
271 ¤·¤¿¤¢¤È¤Î¥·¥§¥ë¤«¤éµ¯Æ°¤µ¤ì¤¿¤È¤¤Ï¡¢¥í¥°¥¤¥ó¥·¥§¥ë¤Î¥ª¡¼¥Ê¡¼¤¬¥á¡¼¥ë
274 .\"O The superuser may use these commands in any case.
275 .\"O For other users, permission to use at is determined by the files
276 .\"O .I /etc/at.allow
278 .\"O .IR /etc/at.deny .
279 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤Ï¡¢¤É¤ó¤Ê¾ì¹ç¤Ç¤âɬ¤º¤³¤Î¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
280 ¾¤Î¥æ¡¼¥¶¡¼¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Ï
287 .\"O .I /etc/at.allow
288 .\"O exists, only usernames mentioned in it are allowed to use
291 ¤¬¤¢¤ì¤Ð¡¢¤½¤³¤Ë½ñ¤«¤ì¤¿¥æ¡¼¥¶¡¼¤Î¤ß¤¬
296 .\"O .I /etc/at.allow
299 .\"O is checked, every username not mentioned in it is then allowed
305 ¤ò¥Á¥§¥Ã¥¯¤·¡¢¤½¤³¤Ë½ñ¤«¤ì¤Æ¡Ö¤¤¤Ê¤¤¡×¥æ¡¼¥¶¡¼¤¹¤Ù¤Æ¤¬
309 .\"O If neither exists, only the superuser is allowed use of at.
310 ¤â¤·¤É¤Á¤é¤Î¥Õ¥¡¥¤¥ë¤â¤Ê¤±¤ì¤Ð¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤Î¤ß
311 at ¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
315 .\"O means that every user is allowed use these commands, this is the
316 .\"O default configuration.
319 ¤¬¤¢¤ë¤È¤¤Ï¡¢Á´¤Æ¤Î¥æ¡¼¥¶¡¼¤¬¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
320 ¤³¤ÎÀßÄ꤬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
325 .\"O prints the version number to standard error.
326 ¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤òɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤¹¤ë¡£
329 .\"O uses the specified queue.
330 .\"O A queue designation consists of a single letter; valid queue designations
339 ¥¥å¡¼»ØÄê¤ò¤¹¤ë¡£»ØÄê¤Ï±Ñ»ú£±Ê¸»ú¤Ç¹Ô¤¦¡£
351 .\"O queue is the default for
360 ¤Î¥Ç¥Õ¥©¥ë¥È¥¥å¡¼¤Ç¡¢
364 ¤Î¥Ç¥Õ¥©¥ë¥È¥¥å¡¼¤Ç¤¢¤ë¡£
365 .\"O Queues with higher letters run with increased niceness. The special
366 .\"O queue "=" is reserved for jobs which are currently running.
367 ¸å¤Î¤Û¤¦¤Îʸ»ú¤Î¥¥å¡¼¤Û¤É¡¢¤è¤ê nice ¥ì¥Ù¥ë¤¬Â礤¯¤Ê¤ë
368 (¼Â¹Ô¤ÎÍ¥ÀèÅÙ¤¬²¼¤¬¤ë)¡£Æü쥥塼 "=" ¤Ï¸½ºß¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥¸¥ç¥Ö¤Î¤¿¤á
371 .\"O If a job is submitted to a queue designated with an uppercase letter, it
372 .\"O is treated as if it had been submitted to batch at that time.
373 Âçʸ»ú¤Î¥¥å¡¼¤ÇͽÌ󤵤줿¥¸¥ç¥Ö¤Ï¡¢ batch ¤Ç»ØÄꤵ¤ì¤¿¤«¤Î¤è¤¦
377 .\"O is given a specific queue, it will only show jobs pending in that queue.
379 ¤Ç¥¥å¡¼¤ò»ØÄꤹ¤ë¤È¡¢¤½¤Î¥¥å¡¼¤Ë¤¿¤Þ¤Ã¤Æ¤¤¤ë
380 ̤¼Â¹Ô¥¸¥ç¥Ö¤À¤±¤òɽ¼¨¤¹¤ë¡£
383 .\"O Send mail to the user when the job has completed even if there was no
385 ¥¸¥ç¥Ö¤¬´°Î»¤·¤¿¤È¤¡¢¤½¤Î¥¸¥ç¥Ö¤¬¤Ê¤Ë¤â½ÐÎϤ·¤Ê¤¯¤Æ¤â¡¢
386 ¥æ¡¼¥¶¡¼¤Ë´°Î»ÄÌÃΤò¥á¡¼¥ë¤¹¤ë¡£
389 .\"O Reads the job from
391 .\"O rather than standard input.
394 ¤«¤é¥¸¥ç¥Ö¤òÆɤ߼è¤ë¡£
411 .\"O shows completed but not yet deleted jobs in the queue; otherwise
412 .\"O shows the time the job will be executed.
414 ¤Ç»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢¥¥å¡¼¤ÎÃæ¤Ë¸ºß¤·¤Æ¤¤¤ë¡Ö½ªÎ»¤·¤¿¤¬¤Þ¤Àºï½ü¤µ¤ì
415 ¤Æ¤¤¤Ê¤¤¡×¥¸¥ç¥Ö¤òɽ¼¨¤¹¤ë¡£¤½¤Î¤Û¤«¤Î¥³¥Þ¥ó¥É¤Ç»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤Î
416 ¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë»þ¹ï¤òɽ¼¨¤¹¤ë¡£
418 .\"O Times displayed will be in the format "1997-02-20 14:50" unless the
419 .\"O environment variable
420 .\"O .B POSIXLY_CORRECT
421 .\"O is set; then, it will be "Thu Feb 20 14:50:00 1996".
422 »þ¹ï¤Ï "1997-02-20 14:50" ¤Î¤è¤¦¤Ê·Á¼°¤Çɽ¼¨¤µ¤ì¤ë¡£¤¿¤À¤·´Ä¶ÊÑ¿ô
424 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï "Thu Feb 20 14:50:00 1996" ¤Î¤è¤¦¤Ë¤Ê¤ë¡£
428 .\"O cats the jobs listed on the command line to standart output.
429 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤷ¤¿¥¸¥ç¥Ö¤òɸ½à½ÐÎϤËɽ¼¨¤¹¤ë¡£
434 .I /var/spool/atspool
445 cron(1), nice(1), sh(1), umask(2), atd(8)
448 .\"O The correct operation of
450 .\"O for Linux depends on the presence of a
452 .\"O type directory mounted on
456 ¤¬Àµ¤·¤¯Æ°ºî¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
460 ·Á¼°¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬É¬ÍפǤ¢¤ë¡£
463 .\"O .I /var/run/utmp
464 .\"O is not available or corrupted, or if the user is not logged on at the
467 .\"O is invoked, the mail is sent to the userid found
468 .\"O in the environment variable
470 .\"O If that is undefined or empty, the current userid is assumed.
473 ¤¬²õ¤ì¤Æ»È¤¨¤Ê¤«¤Ã¤¿¤ê¡¢
475 ¤¬¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë¤È¤¤Ë¥æ¡¼¥¶¡¼¤¬¥í¥°¥¤¥ó¤·¤Æ¤Ê¤«¤Ã¤¿¤ê¤¹¤ë¤È¡¢
478 ¤Ç»ØÄꤵ¤ì¤¿¥æ¡¼¥¶¡¼ ID ¤Ë¥á¡¼¥ë¤òÁ÷¤ë¡£¤â¤·¤³¤ÎÊÑ¿ô¤¬ÄêµÁ¤µ¤ì¤Æ
479 ¤¤¤Ê¤«¤Ã¤¿¤ê¡¢¶õ¤À¤Ã¤¿¤ê¤·¤¿¾ì¹ç¡¢¥«¥ì¥ó¥È¤Î¥æ¡¼¥¶¡¼ ID ¤ËÁ÷¤é¤ì¤ë¡£
484 .\"O as presently implemented are not suitable when users are competing for
486 .\"O If this is the case for your site, you might want to consider another
487 .\"O batch system, such as
492 ¤Î¸½ºß¤Î¼ÂÁõ¤Ï¡¢¥æ¡¼¥¶¡¼¤¬»ñ¸»¤ò¼è¤ê¹ç¤Ã¤Æ¤¤¤ë¤è¤¦¤Ê¾õ¶·²¼¤Ç¤Ï
493 ŬÅö¤Ê¤â¤Î¤Ç¤Ï¤Ê¤¤¡£¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¾¤Îbatch¥·¥¹¥Æ¥à¡¢¤¿¤È¤¨¤Ð
495 ¤Ê¤É¤ò¹Í¤¨¤ë¤Ù¤¤À¤í¤¦¡£
498 .\"O At was mostly written by Thomas Koenig, ig25@rz.uni-karlsruhe.de.
499 at ¤Ï¤Û¤Ü Thomas Koenig, ig25@rz.uni-karlsruhe.de ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£