Files
oldlinux-files/Minix/2.0.0/wwwman/man1/at.1.html
2024-02-19 00:21:39 -05:00

72 lines
1.9 KiB
HTML

<HTML>
<HEAD>
<TITLE>at(1)</TITLE>
</HEAD>
<BODY>
<H1>at(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
at, atrun - execute commands at a later time
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>at</STRONG> <EM>time</EM> [<EM>month</EM> <EM>day</EM>] [<EM>file</EM>]
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>at</STRONG> <STRONG>2315</STRONG> <STRONG>Jan</STRONG> <STRONG>31</STRONG> <STRONG>myfile</STRONG>
# Myfile executed Jan 31 at 11:15 pm
<STRONG>at</STRONG> <STRONG>0900</STRONG> # Job input read from <EM>stdin</EM>
<STRONG>at</STRONG> <STRONG>0711</STRONG> <STRONG>4</STRONG> <STRONG>29</STRONG> # Read from <EM>stdin</EM>, exec on April 29
</PRE>
<H2>DESCRIPTION</H2><PRE>
<EM>At</EM> prepares a file to be executed later at the specified time by creating
a special entry in /<EM>usr</EM>/<EM>spool</EM>/<EM>at</EM>. The program <EM>atrun</EM> should be started
periodically, for example, every minute by <EM>cron</EM>. <EM>Atrun</EM> checks to see if
any files in /<EM>usr</EM>/<EM>spool</EM>/<EM>at</EM> should now be run, and if so, it runs them and
then puts them in /<EM>usr</EM>/<EM>spool</EM>/<EM>at</EM>/<EM>past</EM>. The name of the file created in
/<EM>usr</EM>/<EM>spool</EM>/<EM>at</EM> by <EM>at</EM> is YY.DDD.HHMM.UU (where YY, DDD, HH, and MM give the
time to execute and UU is a unique number). Note that when the command
runs, it will not be able to use <EM>stdin</EM> or <EM>stdout</EM> unless specifically
redirected. In the first example above, it might be necessary to put
&gt;/<EM>dev</EM>/<EM>log</EM> on some lines in the shell script <EM>myfile</EM>. The same holds for
the commands typed directly to <EM>at</EM>.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man8/cron.8.html">cron(8)</A></STRONG>.
</PRE>
</BODY>
</HTML>