Automatisch uitvoeren van scripts onder Linux: verschil tussen versies
Jump to navigation
Jump to search
| Regel 1: | Regel 1: | ||
| + | <span data-link_translate_pt_title="Automaticamente executar scripts no Linux" data-link_translate_pt_url="Automaticamente+executar+scripts+no+Linux"></span>[[:pt:Automaticamente executar scripts no Linux]][[pt:Automaticamente executar scripts no Linux]] | ||
<span data-link_translate_es_title="Ejecutar automáticamente secuencias de comandos en Linux" data-link_translate_es_url="Ejecutar+autom%C3%A1ticamente+secuencias+de+comandos+en+Linux"></span>[[:es:Ejecutar automáticamente secuencias de comandos en Linux]][[es:Ejecutar automáticamente secuencias de comandos en Linux]] | <span data-link_translate_es_title="Ejecutar automáticamente secuencias de comandos en Linux" data-link_translate_es_url="Ejecutar+autom%C3%A1ticamente+secuencias+de+comandos+en+Linux"></span>[[:es:Ejecutar automáticamente secuencias de comandos en Linux]][[es:Ejecutar automáticamente secuencias de comandos en Linux]] | ||
<span data-link_translate_en_title="Automatically run scripts under Linux" data-link_translate_en_url="Automatically+run+scripts+under+Linux"></span>[[:en:Automatically run scripts under Linux]][[en:Automatically run scripts under Linux]] | <span data-link_translate_en_title="Automatically run scripts under Linux" data-link_translate_en_url="Automatically+run+scripts+under+Linux"></span>[[:en:Automatically run scripts under Linux]][[en:Automatically run scripts under Linux]] | ||
Versie van 24 jan 2016 19:14
pt:Automaticamente executar scripts no Linux
es:Ejecutar automáticamente secuencias de comandos en Linux
en:Automatically run scripts under Linux
fr:Exécuter automatiquement des scripts sous Linux
Dit artikel is vertaald door middel van automatische vertalingssoftware. U kunt het artikel bron hier te bekijken.
Problematisch
U wilt kunnen bellen Linux commando's en scripts automatisch, sommige dagen of uren.
Oplossing
Maken van regels cron om het systeem van opdrachten uit te voeren en de tijd of de schakeltijd.
- Dan moet u eerst controleren of uw script is kundig voor stormloop opdrachtregel.
- Vervolgens gewoon invoegen in het bestand /etc/crontab, het pad naar het script en de uren van handhaving.
Hier is de samenstelling van een lijn cron:
[minute] [heure] [jour du mois] [mois] [jour de la semaine] [commande à lancer]
Voorbeelden
#Programmation du reboot soft tous les Lundi, Mardi, Jeudi, Samedi a 6h30 30 6 * * 1,2,4,6 root reboot #Programmation d'un script http appelé toutes les minutes */1 * * * * root GET http://votre-domaine.com/test.php
Automatisch bijwerken van reacties inschakelen