转自:http://bbs.chinaunix.net/viewthread.php?tid=271992&extra=&page=1 crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 crontab命令有三种形式的命令行结构: crontab [-u user] [file] crontab [-u user] [-e|-l|-r] crontab -l -u [-e|-l|-r] 第一个命令行中,file是命令文件的名字。如果在命令行中指定了...
by UnixBreeze - HP文档中心 - 2009-06-02 14:41:14 阅读(2485) 回复(0)
不能直接编辑这个文件。需要用这个命令crontab -e,系统默认调用ed编辑器进行编辑。然后输入a,输入你增加的内容,输入.切换到命令模式,输入w存盘,输入p退出。即可。 crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 crontab命令有三种形式的命令行结构: crontab [-u user] [file] crontab [-u user] [-e...
crontab命令详解 crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 crontab命令有三种形式的命令行结构: crontab [-u user] [file] crontab [-u user] [-e|-l|-r] crontab -l -u [-e|-l|-r] 第一个命令行中,file是命令文件的名字。如果在命令行中指定了这个文件,那么执行crontab命令,则将这个文件拷贝到cr...
crontab命令详解 crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 crontab命令有三种形式的命令行结构: crontab [-u user] [file] crontab [-u user] [-e|-l|-r] crontab -l -u [-e|-l|-r] 第一个命令行中,file是命令文件的名字。如果在命令行中指定了这个文件,那么执行crontab命令,则将这个文件拷贝到cr...
crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。 crontab命令有三种形式的命令行结构: crontab [-u user] [file] crontab [-u user] [-e|-l|-r] crontab -l -u [-e|-l|-r] 第一个命令行中,file是命令文件的名字。如果在命令行中指定了这个文件,那么执行crontab命令,则将这个文件拷贝到crontabs目录下;如...
# crontab -e Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-dt-interface system-medium-r-normal-s*utf*-*-*- Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*utf*-*-*-*- Warning: Missing charsets in String to FontSet conv...
我使用 crontab -e 添加 29 15 * * * /export/home/asx/trycshell/check_machine/check_machine.csh # crontab -l #ident "@(#)root 1.12 94/03/24 SMI" /* SVr4.0 1.1.3.1 */ # # The root crontab should be used to perform accounting data collection. # # The rtc command is run to adjust the real time clock if and when # daylight savings time changes. # 0 2 * * 0,4 /etc/cron.d/logchecker ...
ps = pgrep kill 后面接pid号 pkil 后面接进程名称 # at 9:00 pm at>find /export/home/user2 -name core -exec rm {} \; at> commands will be executed using /sbin/sh job 1016078400.a at Wed Mar 13 21:00:00 2002 To display information about the execution times of jobs, perform the command: # at -l 1016078400.a To display the jobs queued to run at specified times by chronological order of execution...
XX的解说: ///////////////////////////////////////////////////////////////////// crontab a. crontab文件包括在/var/spool/cron/crontabs/username(s)中 查看文件内容 #crontab -l (root 用户) 或 #cd /var/spool/cron/crontabs #more usernames(s) 下面是root用户的crontab文件内容: #ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 ...
crontab - Quick reference Setting up cronjobs in Unix and Solaris cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in unix , solaris. crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times. Following points sum up the...
crontab a. crontab文件包括在/var/spool/cron/crontabs/username(s)中 查看文件内容 #crontab -l (root 用户) 或 #cd /var/spool/cron/crontabs #more usernames(s) 下面是root用户的crontab文件内容: #ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */ # # The root crontab should be used to perform accounting data collection. # # The rtc command is run to adjust the real time clock if and whe...