Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

AT(1)

��������
at - ������������ ���������� ������ � ������������ �����

���������

 at  ����� [����] [+��������]
 at  -r �������������_������� ...
 at  -l [�������������_������� ...]

��������
������� at � ������ �� ����������� ��������� ������ �� ������������ ����� �������, ���������� �������� ����������� �� ��������� �����. ����� ����� ���� ������ ��������� ������� at �����:
-r������� �������, ��������������� ����� � ������� at ��� batch(1), �� ���������������_�������. �������������� ���������� ��������� at � batch. �� ����� ������ ����� �� ������� at -l. ������ ����������������� ����� ������� ����� �������.
-l������� ���������� � ��������������� �������� �� ���������������_�������. ���� �������������� �� �������, �������� ������ ���� �������, ��������������� ������������� � ��� �� �����������.

���� ����������� ����� � ����������� �������� �� �������������, �� ���� ����� ��������������� ������ ������������ ������������ �� �����. ���������� ��������� shell'�, ������� �������, ����� ������ �������� ������ � ������������ ������ ������ [��. umask(1)ulimit(1)] �����������, �� ���� ������� ����������� � ��� �� ���������, ��� �� �������� � �.�. ����������� �������� ������, ���������� � ��������� ��������.

������������ ����������� ��������� ������� at ������ ��� �������, ��� ��� ��� ����������� � ����� /usr/lib/ cron/at.allow. ���� ����� ����� �� ����������, �� ����������� ���� /usr/lib/cron/at.deny, ��� ���� ����� ������, �� �������� �� ������������ ������ � at. ���� ��� ����� �����������, �� ������ ����������������� ��������� ����������� ���������� �������. ���� ���� at.deny ����, � at.allow �����������, �� ��� �������� ����� ��������� ���. ����� at.allow � at.deny �������� �� ������ ����� � ������. �������������� ��� ����� ����� ������ �����������������.

����� ����� ���� ������� 1, 2 ��� 4 �������. ���� ����� ������� �� ����� ��� ���� ����, �� ��� ���������� ����; �������������� ����� ���������� ���� � ������. ����� ����� ����� ���� ������ ��� ��� �����, ����������� ����������, ��� ���������� ��� ����:������. ����� ���� ��������� �������� am (�� �������) ��� pm (����� �������), � ��������� ������ ���� ����������� �� 0 �� 23. ���� ���������� ������� ����� �� ��������, �� ����� �������� ������� zulu. ������������ ����������� ����� noon (�������), midnight (�������), now (������), � next (���������).

���� ����� ���� ������� ����� ���������: ��-������, � ���� �������� ������, �� ������� ������� ����� [�, ����� ����, ��� (����� �������)], � ��-������, ��� ���� ������ (��������� ��� ����������� �� 3 ����). ������������ ��� ����������� "���" today (�������) � tomorrow (������). ���� ���� �� ������, �� �������������� ����������� ����, ���� ��������� ����� ������, ��� �������, � ����������, ���� ������. ���� �������� ����� ������, ��� ������� � ��� ���� �� �����, �� ��������������, ��� ������� � ���� ��������� ���.

�������������� �������� ������������ ����� ������ �����, �� ������� ������� ���� �� ��������� ����: minutes (������), hours (����), days (���), weeks (������), months (������), ��� years (����). ����� ��������� ������� ��������� � ��� �����, �������� at now +minutes.

����� ��������� ������� ���������� ������:

   at  0815am Jan 16
   at  8:15am Jan 16
   at  now +1 day
   at  5 pm Friday

������� at ������ ������������� ������� � ��������������� ����� ��� ���������� � ����������� ��������.

������
����� ������� ����� ����� ���� �������������, ������� ������� at �� shell-����� (������� ��� sfile), ������� � ���� ����� ������ ����:

   echo "sh sfile" | at 1900 thursday next week

�����

/usr/lib/cron
�������� ������� ������, ��������� �� ��������.
/usr/lib/cron/at.allow
������ �������������, ������� ��������� ��������� ������� at � batch.
/usr/lib/cron/at.deny
������ �������������, ������� ��������� ��������� ������� at � batch.
/usr/lib/cron/queuedefs
���������� � ������������.
/usr/spool/cron/atjobs
������� ���������� ������.

��. �����
batch(1), mail(1), sh(1), ulimit(1), umask(1).
cron(1M) � ����������� ��������������.

�����������
���������� � ��������� �������������� ������� � ������������ �������, � ����� � ���, ��� ������������ �� ����� ����� ��������� ������� at.

��������
������� ��������� ������� at now �������� � ���������

   at: too late
(������� ������).
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT