📄 node12.html
字号:
<!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="tex2html425" HREF="node13.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html423" HREF="node8.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html417" HREF="node11.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html427" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html428" HREF="node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR><B> Next:</B> <A NAME="tex2html426" HREF="node13.html">Graphical user interface</A><B>Up:</B> <A NAME="tex2html424" HREF="node8.html">Major services in a </A><B> Previous:</B> <A NAME="tex2html418" HREF="node11.html">Syslog</A><BR> <P><A NAME="353"> </A><H2><A NAME="SECTION00334000000000000000">定时执行命令: <tt>cron</tt><A NAME="351"> </A>和<tt>at</tt></A></H2><P>用户和系统管理员经常需要定时运行命令。例如,系统管理员可能想运行一个程序从老文件中清除暂存文件的目录(<tt>/tmp</tt><A NAME="355"> </A>和<tt>/var/tmp</tt><A NAME="357"> </A>),以免磁盘满,因为并非所有程序都正确地清除自己的暂存文件。<A NAME="287"> </A><A NAME="212"> </A><A NAME="213"> </A><P><tt>cron</tt><A NAME="359"> </A>服务是做这个的。每个用户有个<tt>crontab</tt><A NAME="361"> </A>,在这里列出他要执行的命令和想执行的时间。<tt>cron</tt><A NAME="363"> </A>守侯进程负责在特定的时间启动命令。<A NAME="288"> </A><P><tt>at</tt><A NAME="365"> </A>服务与<tt>cron</tt><A NAME="367"> </A>类似,但它只执行一次:命令在给定的时间执行,但不可自动重复。<A NAME="289"> </A><P><BR> <HR><P><ADDRESS><I>Lars Wirzenius <BR>Sun Jun 29 13:31:22 EEST 1997</I></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -