cron 등록시 궁금증

익명 사용자의 이미지

제가 crontab 에 등록해야 하는데요, crontab -e 명령어를 사용하지 않고
vi 를 통해서 등록시켰는데, 동작을 안하더라고요. 물론 문법은 맞고요.
그래서 cron 데몬을 restart 시켰더니 되더군요.. 제가 필요한건 프로그램
상에서 cron 을 등록시키거나 변경하는 건데요, cron 데몬을 restart 시키
는거 말고 다른 방법이 있나요.. 도와주세요

익명 사용자의 이미지

manpage보시죠.
Additionally, cron checks each minute to see if its spool
directory's
modtime (or the modtime on /etc/crontab) has changed, and if
it has, cron
will then examine the modtime on all crontabs and reload
those which have
changed. Thus cron need not be restarted whenever a crontab
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file is modified.
Note that the crontab(1) command updates the modtime
of the spool directory whenever it changes a crontab.