Aquesta és una revisió antiga del document


at

  • at time → entra en el modo shell de AT para darle la lista de comandos a ejecutar
    • para salir del modo shell, ^C → cancela, ^D → guarda
    • permite indicar hora, días, etc… ejemplos: 10:33, 10:33 + 2 days, dd.mm.yy, now + 3 hours
  • atq → lista tareas pendientes de ejecutar → at -l hace lo mismo
  • at -d x → elimina la tarea x (ver previamente con at -l)

At allows fairly complex time specifications, extending the POSIX.2 standard. It accepts times of the form HH:MM to run a job at a specific time of day. (If that time is already past, the next day is assumed.) You may also specify midnight, noon, or teatime (4pm) and you can have a time-of-day suffixed with AM or PM for running in the morning or the evening. You can also say what day the job will be run, by giving a date in the form month-name day with an optional year, or giving a date of the form MMDDYY or MM/DD/YY or DD.MM.YY. The specification of a date must follow the specification of the time of day. You can also give times like now + count time-units, where the time-units can be minutes, hours, days, or weeks and you can tell at to run the job today by suffixing the time with today and to run the job tomorrow by suffixing the time with tomorrow.

For example, to run a job at 4pm three days from now, you would do at 4pm + 3 days, to run a job at 10:00am on July 31, you would do at 10am Jul 31 and to run a job at 1am tomorrow, you would do at 1am tomorrow.

/usr/share/doc/at-3.1.8/timespec contains the exact definition of the time specification.

  • -m → envia mensaje al finalizar ejecución
  • -f <file> → lee los comandos del fichero en lugar de stdin
  • -c x → lista el contenido del trabajo x

se chequean en orden estos 2 archivos

  1. /etc/at.allow → solo los usuarios de la lista pueden lanzar tareas AT
  2. /etc/at.deny → los nombres no listados pueden ejecutar

http://linux.about.com/library/cmd/blcmdl1_at.htm

  • linux/cron/at.1326464837.txt.gz
  • Darrera modificació: 13/01/2012 06:27
  • per mate