���� ���� ����

10. Delayed commands cron and at

10.1 cron

Cron �� �ֱ������� /etc/crontab�� ������ ������ crontabs���� ������ �����ϴ� ���ɾ��̴�. ����� 1.3 ���� /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly ���ϵ�ν� ǥ������ ����� �����ϰ� �ȴ�. Cron �� ��Ʈ ��Ʈ��Ʈ���� ���۵dz� �ڽ��� path�� ������ ������ ������ �ٲ۴�. ��,

/usr/bin:/binn:/sbin:/bin:/usr/sbin:/usr/bin �̰� cron �� ������ �� ����!!! init �� path���� �պκп� /usr/bin:/bin�� ���� ����� ���̴�! �� ���״� �ٸ� ��� �ý��ۿ� �����ϴ� ���� �ƴϴ�. crontab ���� path ���Ǹ� �� �� �ִµ�, ����� 1.3���� /etc/crontab �� �պκп� ������ �⺻ ���� ������ �ִ�.

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin �� ����������, crond ���α׷��� PATH�� ���� ���α׷������� ������� ������, /etc.cron* ���丮�� ��� ��Ʈ��Ʈ���� �� �н��� �⺻���� �� ���Ѵ�. ������ ���α׷��� �����ڰ� root�� �ƴ϶� �Ϲݻ������ ��쿡�� crond ���α׷��� �� �н��� ����Ѵ�.

10.2 at

at �� Ư���� �ð��� ���α׷��� �ѹ� �����ϱ� ���� ����ϴ� ���ɾ��̴�.

atd �� init �� �н��� ����ϳ�, �������� ���α׷��� sh ���ɾ�� �׻� �� ���� ȯ���Ͽ��� ����Ǿ�����. �׷��Ƿ� shell �� ���� ȯ�溯���� ����� ������. bash �� ���� ���� �о��.


���� ���� ����