Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
linux:cron:at [13/01/2012 06:27] matelinux:cron:at [23/11/2023 05:39] (actual) mate
Línia 1: Línia 1:
 = at = at
 == resumen == resumen
-  * ''at time'' -> entra en el modo shell de AT para darle la lista de comandos a ejecutar +  * ''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+    * para salir del modo shell
 +      * <key>CTL+d</keyguarda 
 +      * <key>CTL+c</key> : cancela
     * permite indicar hora, días, etc... ejemplos: ''10:33'', ''10:33 + 2 days'', ''dd.mm.yy'', ''now + 3 hours''     * 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 +  * ''atq'' ≅ ''at -l''lista tareas pendientes de ejecutar 
-  * ''at -d x'' -> elimina la tarea (ver previamente con ''at -l'')+  * ''at -c <task>'': muestra el contenido de los comandos asignados a la tarea 
 +  * ''at -d <task>'' ≅ ''atrm <task>''elimina la tarea (ver previamente con ''at -l'')
  
-== ejemplos horarios +== ejemplos de formatos horarios 
-At allows fairly complex time specificationsextending 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. +  * acepta especificaciones complejas de horariosiguien el standatd POSIX.2 
- +  * HH:MM 
-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. +  * midnight, noon, teatime, tomorrow 
- +  * HH:MM (AM PM
-/usr/share/doc/at-3.1.8/timespec contains the exact definition of the time specification.+  * MMDDAA 
 +  * MM/DD/AA 
 +  * DD.MM.AA <- esta me dio problemas 
 +  * now + unidades de tiempo (minutes, hours, days, weeks) 
 +    4pm + 3 days 
 +  * 10am Jul 31 
 +  /usr/share/doc/at-3.1.8/timespec contains the exact definition of the time specification.
 == parámetros interesantes == parámetros interesantes
-  * ''-m'' -> envia mensaje al finalizar ejecución +  * **-m** -> envia mensaje al finalizar ejecución 
-  * ''-f <file>'' -> lee los comandos del fichero en lugar de stdin +  * **-f <file>** -> lee los comandos del fichero en lugar de stdin 
-  * ''-c x'' -> lista el contenido del trabajo x+  * **-c x** -> lista el contenido del trabajo x
  
 == ficheros == ficheros
 se chequean en orden estos 2 archivos se chequean en orden estos 2 archivos
-  - ''/etc/at.allow'' -> solo los usuarios de la lista pueden lanzar tareas AT +  - **/etc/at.allow** -> solo los usuarios de la lista pueden lanzar tareas AT 
-  - ''/etc/at.deny'' -> los nombres no listados pueden ejecutar+  - **/etc/at.deny** -> los nombres no listados pueden ejecutar
  
 [[http://linux.about.com/library/cmd/blcmdl1_at.htm]] [[http://linux.about.com/library/cmd/blcmdl1_at.htm]]
  • linux/cron/at.1326464837.txt.gz
  • Darrera modificació: 13/01/2012 06:27
  • per mate