[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

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:software:at [2019/08/27 14:36 (UTC)] – [Related Commands] 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). -->
-<note warning>en traduccion</note>+
 ====== at - Programación de tareas ====== ====== at - Programación de tareas ======
 ** 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 ** 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.
Línea 7: Línea 7:
 Se incluyen los siguientes comandos para monitorear el comando ** at **: Se incluyen los siguientes comandos para monitorear el comando ** at **:
    * ** at **: el programa solía enviar una tarea única.    * ** at **: el programa solía enviar una tarea única.
-   * ** atq **: el programa utilizado para revisar la cola de trabajos enviados con ** en **+   * ** atq **: el programa utilizado para revisar la cola de trabajos enviados con ** at **
 . .
    * ** atrm **: el programa utilizado para eliminar trabajos de la cola.    * ** atrm **: el programa utilizado para eliminar trabajos de la cola.
-===== at Command Use ===== +===== El uso del comando at ===== 
-The **at** command can be issued to allow you to write a custom script or +El comando ** at ** puede emitirse para permitirle escribir un script personalizado o señalarlo un script preconstruidoAdemáslas amplias especificaciones de tiempo permitien aumentar la complejidad.
-point it to pre-built script. In additionthe broad time specifications +
-allowed increase the complexity. +
- +
-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 ==== +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. 
-This example will tell the **at** application to run the script +==== Programación de un script existente ==== 
-///home/user/testscript.sh// at 4PM today and e-mail the user upon +Este ejemplo le dirá a la aplicación ** at ** que ejecute el script 
-completion.+///home/user/testscript.sh// a las 4PM de hoy y envíe un correo electrónico al usuario al finalizar.
 <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 42: 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 62: 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 81: 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 95: 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 102: 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 ()