AT(1) | General Commands Manual | AT(1) |
at, batch, atq, atrm - encolan, examinan o borran trabajos pendientes de ejecución
at [-V] [-q cola] [-f
archivo] [-u nombreusuario] [-mMlv]
timespec ..."
at [-V] [-q cola] [-f archivo]
[-u nombreusuario] [-mMkv] [-t tiempo]
at -c tarea [...]
at [-V] -l [-o formatotiempo] [tarea
...]
at [-V] [-q cola] [-o formatotiempo]
[tarea ...]
at [-rd] trabajo [...]
atrm [-V] trabajo [...]
batch
at -b
at y batch leen órdenes desde la entrada estándar o un fichero especificado, los cuales van a ser ejecutados más tarde, utilizando read commands from standard input or a specified file which are to be executed at a later time, using /bin/sh.
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 MMDD[CC]YY, MM/DD/[CC]YY, DD.MM.[CC]YY or [CC]YY-MM-DD. 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.
Por ejemplo, para ejecutar un trabajo a las 4pm dentro de tres días, haríamos at 4pm + 3 days, para ejecutar un trabajo a las 10:00am del 31 de Julio, haríamos at 10am Jul 31 y para ejecutarlo mañana a la 1 de la madrugada, pondríamos at 1am tomorrow.
If you specify a job to absolutely run at a specific time and date in the past, the job will run as soon as possible. For example, if it is 8pm and you do a at 6pm today, it will run more likely at 8:05pm.
La definición de la especificación de hora se puede encontrar en /usr/share/doc/at/timespec.
For both at and batch, commands are read from standard input or the file specified with the -f option and executed. The working directory, the environment (except for the variables BASH_VERSINFO, DISPLAY, EUID, GROUPS, SHELLOPTS, TERM, UID, and _) and the umask are retained from the time of invocation.
As at is currently implemented as a setuid program, other environment variables (e.g., LD_LIBRARY_PATH or LD_PRELOAD) are also not exported. This may change in the future. As a workaround, set these variables explicitly in your job.
Una orden at - o batch - invocada desde un shell su(1) retendrá también el identificador de usuario (userid). El usuario recibirá un correo con la salida de error estándar y la salida estándar de sus órdenes, si hay alguna. El correo se enviará utilizando la orden /usr/sbin/sendmail. Si at se ejecuta desde un shell su(1), el propietario del shell de login será el que reciba el mensaje.
El administrador siempre puede utilizar estas órdenes. Para otros usuarios, los permisos para utilizarlos están definidos en los archivos /etc/at.allow y /etc/at.deny. Consulte at.allow(5) para más detalles.
If a job is submitted to a queue designated with an uppercase letter, the job is treated as if it were submitted to batch at the time of the job. Once the time is reached, the batch processing rules with respect to load average apply. If atq is given a specific queue, it will only show jobs pending in that queue.
Times displayed will be in the format "Thu Feb 20 14:50:00 1997".
/var/spool/cron/atjobs
/var/spool/cron/atspool
/proc/loadavg
/var/run/utmp
/etc/at.allow
/etc/at.deny
at.allow(5), at.deny(5), atd(8), cron(1), nice(1), sh(1), umask(2).
El funcionamiento correcto de batch para Linux depende de la presencia de un directorio del tipo proc- montado en /proc.
Si el fichero /var/run/utmp no está disponible o está corrupto, o si el usuario no tiene una sesión activa en el momento en que at es invocado, el mensaje de correo se envía al identificador de usuario que se encuentre en la variable de entorno LOGNAME. Si ésta está sin definir o vacía, se asume el actual identificador de usuario.
At y batch tal y como están implementados ahora no son satisfactorios cuando los usuarios compiten por los recursos. Si este es su caso, podría querer considerar otro sistema batch, como por ejemplo nqs.
At fue escrito en su mayor parte por Thomas Koenig.
La traducción al español de esta página del manual fue creada por Julio González Durán <jugonzalez@mx3.redestb.es> y Marcos Fouces <marcos@debian.org>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.
Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.
14 Noviembre 2009 |