[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
es:howtos:software:at [2019/02/28 01:42 (UTC)] – creado slackwarespanoles:howtos:software:at [2019/08/27 14:52 (UTC)] (actual) slackwarespanol
Línea 1: Línea 1:
 <!-- Reviewed 2013-10-16 mfillpot --> <!-- Reviewed 2013-10-16 mfillpot -->
 <!-- Add your text below. Start with a Headline (see button bar above). --> <!-- Add your text below. Start with a Headline (see button bar above). -->
-====== at - Task Scheduling ====== 
-**at** is a task scheduling tool which one-time enables tasks to be 
-performed on your system. The **batch** is 
-like **at** but permforms the one-time tasks when system load permits it, all 
-command and functions of **at** can be replicated by **batch** with the same 
-arguments. 
  
-===== Related Commands ===== +====== at - Programación de tareas ====== 
-The following commands are included to monitor the **at** command+** at ** es una herramienta de programación de tareas que permite al mismo tiempo realizar tareas en su sistema. El ** batch ** es como ** at ** pero realiza las tareas de una sola vez cuando la carga del sistema lo permite, todos los comandos y funciones de ** at ** pueden ser replicados por ** batch ** con los mismos argumentos. 
-  * **at** - The program used to submit a one-time task+===== Comandos relacionados ===== 
-  * **atq** - The program used to review the queue of jobs submitted with **at**+Se incluyen los siguientes comandos para monitorear el comando ** at **
 +   * ** at **: el programa solía enviar una tarea única
 +   * ** atq **: el programa utilizado para revisar la cola de trabajos enviados con ** at **
 . .
-  * **atrm** - The program used to remove jobs from the at queue.+   * ** atrm **: el programa utilizado para eliminar trabajos de la cola. 
 +===== El uso del comando at ===== 
 +El comando ** at ** puede emitirse para permitirle escribir un script personalizado o señalarlo a un script preconstruido. Además, las amplias especificaciones de tiempo permitien aumentar la complejidad.
  
-===== at Command Use ===== +El argumento // - m // se puede agregar a cualquier comando que le indique al daemon que envíe un correo al usuario en el sistema local para avisarle de la finalización de la tarea
-The **at** command can be issued to allow you to write a custom script or +==== Programación de un script existente ==== 
-point it to a pre-built script. In addition, the broad time specifications +Este ejemplo le dirá a la aplicación ** at ** que ejecute el script 
-allowed increase the complexity. +///home/user/testscript.sh// a las 4PM de hoy y envíe un correo electrónico al usuario al finalizar.
- +
-The //-m// argument can be added to any command telling the daemon to mail +
-the user on the local system advising of the completion of the task. +
- +
-==== Scheduling an Existing Script ==== +
-This example will tell the **at** application to run the script +
-///home/user/testscript.sh// at 4PM today and e-mail the user upon +
-completion.+
 <code> <code>
 user@darkstar$ at 16:00 -m -f /home/user/testscript.sh user@darkstar$ at 16:00 -m -f /home/user/testscript.sh
 </code> </code>
  
-As you can see the //-f// argument means **file** as it points to the +Como puede ver, el argumento // - f // significa ** archivo ** ya que apunta al archivo que se ejecutará.
-file that will be executed.+
  
-==== Scheduling a New Action ==== +==== Programando una nueva acción ==== 
-As seen belowwhen no file is specified the **at** application opens a +Como se ve a continuacióncuando no se especifica ningún archivo, la aplicación ** at ** abre una solicitud para que el usuario ingrese el nuevo script.
-prompt for the user to enter the new script.+
  
 <code> <code>
Línea 47: Línea 35:
 </code> </code>
  
-The user will need to type the sequence of commands that will be issued +El usuario deberá escribir la secuencia de comandos que se emitirán dentro de la solicitud; al finalizarcierre la solicitud con <key> Ctrl </key> + <key> 'd' </key>
-within the promptupon completion you close the prompt with the +
-<key>Ctrl</key>+<key>'d'</key>+
    
-The command above instructed **at** to ping google times at 7:40PMreturn +El comando anterior le indicó a ** at ** que haga ping a Google veces a las 7:40 PMque devuelva el estado de la aplicación y envíe los resultados por correo electrónico al usuario.
-the application status and e-mail the results to the user.+
  
 <note important> <note important>
-Be sure to note the job numberit is the only visible identifier for the job +Asegúrese de anotar el número de trabajoes el único identificador visible para el trabajo y debe ser referenciado si desea eliminar el trabajo más adelante.
-and must be referenced if you wish to remove the job later.+
 </note> </note>
  
-==== Reviewing Queued Tasks ==== +==== Revisión de tareas en cola ==== 
-The command **atq** lists the user's pending jobsThe output is Job Number, +El comando ** atq ** enumera los trabajos pendientes del usuarioLa salida es Número de trabajofechahoracola y nombre de usuario.
-datehourqueue and username.+
 <code> <code>
 user@darkstar$ atq user@darkstar$ atq
Línea 67: Línea 50:
 </code> </code>
  
-Once the task number has been noted you can review the commands that are +Una vez que se haya anotado el número de tarea, puede revisar los comandos que se incluyen en el trabajo emitiendo el comando // en -c {número de trabajo} //, y el ejemplo se muestra a continuación.
-included in the job by issuing the command //at -c {jobnumber}//, and example is shown below.+
  
 <code> <code>
Línea 86: Línea 68:
 </code> </code>
  
-==== Removing Queued Tasks ==== +==== Eliminar tareas en cola ==== 
-The command **atrm** removes jobs from the pending queueit does not present +El comando ** atrm ** elimina los trabajos de la cola pendienteno presenta ninguna confirmación de que el trabajo se haya eliminado, por lo que puede ser recomendable ejecutar ** atq ** después de ** atrm ** para confirmar que el trabajo se ha eliminado.
-any confirmation that the job is removed so it may be advisable to run +
-**atq** after **atrm** to confirm the job has been removed.+
 <code> <code>
 user@darkstar$ atrm 4 user@darkstar$ atrm 4
Línea 100: Línea 80:
  
  
-====== Sources ======+====== Fuentes ======
  
 <!-- If you copy information from another source, then specify that source --> <!-- If you copy information from another source, then specify that source -->
Línea 107: Línea 87:
  
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
- Originally written by [[wiki:user:mfillpot | mfillpot]]+    Originalmente escrito por [[wiki:user:mfillpot | mfillpot]] 
 +    * Traducido por [[wiki:user:slackwarespanol | Victor]] 2019/08/27 14:49 (UTC) 
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 es:howtos:software:at ()