Automatisch uitvoeren van scripts onder Linux: verschil tussen versies
Jump to navigation
Jump to search
| Regel 1: | Regel 1: | ||
| + | <span data-link_translate_zh_title="自动运行在 Linux 下的脚本" data-link_translate_zh_url="%E8%87%AA%E5%8A%A8%E8%BF%90%E8%A1%8C%E5%9C%A8+Linux+%E4%B8%8B%E7%9A%84%E8%84%9A%E6%9C%AC"></span>[[:zh:自动运行在 Linux 下的脚本]][[zh:自动运行在 Linux 下的脚本]] | ||
<span data-link_translate_de_title="Automatische Ausführung von Skripten unter Linux" data-link_translate_de_url="Automatische+Ausf%C3%BChrung+von+Skripten+unter+Linux"></span>[[:de:Automatische Ausführung von Skripten unter Linux]][[de:Automatische Ausführung von Skripten unter Linux]] | <span data-link_translate_de_title="Automatische Ausführung von Skripten unter Linux" data-link_translate_de_url="Automatische+Ausf%C3%BChrung+von+Skripten+unter+Linux"></span>[[:de:Automatische Ausführung von Skripten unter Linux]][[de:Automatische Ausführung von Skripten unter Linux]] | ||
<span data-link_translate_it_title="Eseguire automaticamente script sotto Linux" data-link_translate_it_url="Eseguire+automaticamente+script+sotto+Linux"></span>[[:it:Eseguire automaticamente script sotto Linux]][[it:Eseguire automaticamente script sotto Linux]] | <span data-link_translate_it_title="Eseguire automaticamente script sotto Linux" data-link_translate_it_url="Eseguire+automaticamente+script+sotto+Linux"></span>[[:it:Eseguire automaticamente script sotto Linux]][[it:Eseguire automaticamente script sotto Linux]] | ||
Versie van 24 jan 2016 19:14
zh:自动运行在 Linux 下的脚本
de:Automatische Ausführung von Skripten unter Linux
it:Eseguire automaticamente script sotto Linux
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