����λ�ã���ҳ > �����̳� > �̳� > Linux crontab��ʱִ������ �����ʽ����ϸ����

Linux crontab��ʱִ������ �����ʽ����ϸ����

��Դ����������|��ʱ�䣺2015-07-06 15:01:58 |���Ķ���121��|�� ��ǩ�� ��� �� |����������
������ʽ : 
*����*����*����*����*����command 
�֡�ʱ���ա��¡��ܡ����� 
��1�б�ʾ����1��59 ÿ������*���� */1��ʾ 
��2�б�ʾСʱ1��23��0��ʾ0�㣩 
��3�б�ʾ����1��31 
��4�б�ʾ�·�1��12 
��5�б�ʶ������0��6��0��ʾ�����죩 
��6��Ҫ���е����� 
crontab�ļ���һЩ���ӣ� 
30 21 * * * /usr/local/etc/rc.d/lighttpd restart 
��������ӱ�ʾÿ����21:30����apache�� 
45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart 
��������ӱ�ʾÿ��1��10��22�յ�4 : 45����apache�� 
10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart 
��������ӱ�ʾÿ���������յ�1 : 10����apache�� 
0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart 
��������ӱ�ʾ��ÿ��18 : 00��23 : 00֮��ÿ��30��������apache�� 
0 23 * * 6 /usr/local/etc/rc.d/lighttpd restart 
��������ӱ�ʾÿ��������11 : 00 pm����apache�� 
* */1 * * * /usr/local/etc/rc.d/lighttpd restart 
ÿһСʱ����apache 
* 23-7/1 * * * /usr/local/etc/rc.d/lighttpd restart 
����11�㵽����7��֮�䣬ÿ��һСʱ����apache 
0 11 4 * mon-wed /usr/local/etc/rc.d/lighttpd restart 
ÿ�µ�4����ÿ��һ��������11������apache 
0 4 1 jan * /usr/local/etc/rc.d/lighttpd restart 
һ��һ�ŵ�4������apache 
���� : crontab 
ʹ��Ȩ�� : ����ʹ���� 
ʹ�÷�ʽ : 
crontab file [-u user]-��ָ�����ļ����Ŀǰ��crontab�� 
crontab-[-u user]-�ñ�׼�������Ŀǰ��crontab. 
crontab-1[user]-�г��û�Ŀǰ��crontab.  С���Ƽ��Ķ�

�������������Ľ�Ϊ������Ϣ����������������ͬ���޹۵��֤ʵ��������

�����Ƶ����

����

ͬ������

����

ɨ��ά�����������ֻ��汾��

ɨ��ά����������΢�Ź��ںţ�

��վ�������������������ϴ��������ַ���İ�Ȩ���뷢�ʼ�[email protected]

��ICP��2022002427��-10 �湫��������43070202000427��© 2013~2025 haote.com ������