[crontab] 서버 작업 하면서 쉽게 잊어 먹는 작업중 하나..

서버 2014. 2. 7. 01:01

오늘 서버작업 하면서 문득 하나씩 기억날때마다 정리할건 하고 싶어 이렇게 남겨보네요. 별거없지만

그중에서도 crontab라는 데몬이 있죠..

대충설명하면 주기적으로 하는 작업들을 crond에 넣으면 그담부턴 자기 스스로가 진행이 이루어지는거죠..

 

crontab -u user -l list -e edit -r remove

 

[root@localhost conf.d]# vi /etc/crontab

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

 

 

 

'서버' 카테고리의 다른 글

Ubuntu14.10 Netinstall Guide Part II  (0) 2014.12.09
Ubuntu14.04_LTS Netinstall Guide Part 4  (0) 2014.12.09
Centos7 netinstall guide part3  (0) 2014.12.09
Centos5 netinstall guide Part2  (0) 2014.12.08
Centos6 netinstall guide Part1  (0) 2014.12.08