summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/Invisible/sag-0.6/node12.html
blob: df1afab4ff8163246e38b6ca79bd23b9c1e59e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Periodic command execution: cron and at</TITLE>
<META NAME="description" CONTENT="Periodic command execution: cron and at">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css">
</HEAD>
<BODY LANG="EN" >
 <A NAME="tex2html445" HREF="node13.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html443" HREF="node8.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html437" HREF="node11.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html447" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html448" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html446" HREF="node13.html">Graphical user interface</A>
<B>Up:</B> <A NAME="tex2html444" HREF="node8.html">Major services in a </A>
<B> Previous:</B> <A NAME="tex2html438" HREF="node11.html">Syslog</A>
<BR> <P>
<A NAME="353">&#160;</A><H2><A NAME="SECTION00334000000000000000">Periodic command execution: <tt>cron</tt><A NAME="351">&#160;</A> and <tt>at</tt></A></H2>
<P>
	Both users and system administrators often need to run
	commands periodically.  For example, the system
	administrator might want to run a command to clean the
	directories with temporary files (<tt>/tmp</tt><A NAME="355">&#160;</A> and <tt>/var/tmp</tt><A NAME="357">&#160;</A>)
	from old files, to keep the disks from filling up, since not
	all programs clean up after themselves correctly.
<A NAME="287">&#160;</A>
<A NAME="211">&#160;</A>
<A NAME="212">&#160;</A>
<P>
	The <tt>cron</tt><A NAME="359">&#160;</A> service is set up to do this.  Each user has
	a <tt>crontab</tt><A NAME="361">&#160;</A>, where he lists the commands he wants to
	execute and the times they should be executed.  The <tt>cron</tt><A NAME="363">&#160;</A>
	daemon takes care of starting the commands when specified.
<A NAME="288">&#160;</A>
<P>
	The <tt>at</tt><A NAME="365">&#160;</A> service is similar to <tt>cron</tt><A NAME="367">&#160;</A>, but it is
	once only: the command is executed at the given time, but it
	is not repeated.
<A NAME="289">&#160;</A>
<P>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>