Prochaine révision | Révision précédente |
fr:howtos:general_admin:task_scheduling [2015/09/11 01:55 (UTC)] – créée cedric | fr:howtos:general_admin:task_scheduling [2015/09/14 17:54 (UTC)] (Version actuelle) – [Interactive at] traduction [fr] cedric |
---|
<note important>TRADUCTION en cours --- //[[wiki:user:cedric|Cedric M.]] 2015/09/11 01:52//</note> | <note important>TRADUCTION en cours --- //[[wiki:user:cedric|Cedric M.]] 2015/09/11 01:52//</note> |
=====Introduction===== | =====Introduction===== |
This article discusses some tools used in a Linux system to schedule tasks to run automatically at specified time intervals or at any given point of time in the future. This primer will not cover these commands in-depth; this is just a brief introduction to using these commands. See the individual HOWTOS for each command for an in-depth look at all relevant options and configurations. | |
| |
Some task-scheduling daemons used in Linux/UNIX are: | Cet article traite de certains outils utilisés dans un système Linux pour planifier des tâches à exécuter automatiquement à des intervalles de temps spécifiques ou à un moment donné. Cet article ne détaillera pas les commandes en profondeur; il est juste une brève introduction à l'utilisation de ces commandes. Lisez les HOWTOS individuels de chaques commandes pour plus de précisions sur leurs options. |
* ''[[howtos:software:at|at]]'' -- schedule one-time tasks for the future | |
* ''[[howtos:software:cron|cron]]'' -- the periodic scheduler most commonly used | Quelques daemons Linux/UNIX de planification de tâches : |
| <note>NdT: Les liens suivants font référence aux versions originales.</note> |
| <!-- Lorsque les pages correspondantes auront été traduites, merci d'ajouter les liens fr:howtos et de supprimer la note ci-dessus --> |
| * ''[[howtos:software:at|at]]'' -- planification de tâches unique |
| * ''[[howtos:software:cron|cron]]'' -- le planificateur périodique le plus utilisé |
* ''[[howtos:software:anacron|anacron]]'' -- anachronistic cron; a periodic scheduler that doesn't rely on the system being left on 24x7 | * ''[[howtos:software:anacron|anacron]]'' -- anachronistic cron; a periodic scheduler that doesn't rely on the system being left on 24x7 |
| |
=====Using at===== | ===== Utiliser at===== |
The **//at//** command allows a user to execute commands or scripts at a specified time (required) and date (optional). The commands can be entered via standard input, redirection, or file. | La commande **//at//** permet à un utilisateur d'exécuter des commandes ou des scripts à une date (obligatoire) et heure (facultatif) spécifiques. La commande peut être passé sur l'entrée standard, en redirection ou dans un fichier. |
| |
<code> | <code> |
</code> | </code> |
| |
=====Interactive at===== | ===== at en mode Interractif ===== |
Using the command **//at//** with standard input (keyboard) is a little more complicated than typing one line in at the prompt. The command uses an internal "sub-shell" to gather the required information. Once the command information entry is complete, <key>Ctrl-D</key> (EOT) will signify entry completion. The **//-m//** flag specifies a mail message will be sent to the user when the job is finished, regardless if any output was created. | |
| Utiliser la commande **//at//** avec l'entrée standard (avec le clavier) est un petit peu plus compliqué que de taper une ligne de commande au prompt. La commande utilise un "sub-shell" pour rassembler les information demandées. Une fois que l'entrée de la commande d'information est complète, <key>Ctrl-D</key> (EOT) signifiera la fin de l'entrée. L'argument **//-m//** spécifie qu'un message mèl sera envoyé à l'utilisateur lorsque le job sera terminé, à moins qu'une sortie ait été créée. |
| |
<code> | <code> |
<!-- Veuillez ne rien modifier dans la ligne ci-dessous, hormis ajouter de nouveaux mots-clés. --> | <!-- Veuillez ne rien modifier dans la ligne ci-dessous, hormis ajouter de nouveaux mots-clés. --> |
<!-- Vous devez supprimer le mot-clé "template" avant de sauvegarder cette nouvelle page. --> | <!-- Vous devez supprimer le mot-clé "template" avant de sauvegarder cette nouvelle page. --> |
{{tag>fr:howtos task_scheduling needs_attention author_vharishankar author_mfillpot translator_cedric}} | {{tag>translation_in_progress fr:howtos task_scheduling needs_attention author_vharishankar author_mfillpot translator_cedric}} |
| |