Автоматически запускать скрипты под Linux: различия между версиями
Ikbot (обсуждение | вклад) |
Ikbot (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
| + | <span data-link_translate_nl_title="Automatisch uitvoeren van scripts onder Linux" data-link_translate_nl_url="Automatisch+uitvoeren+van+scripts+onder+Linux"></span>[[:nl:Automatisch uitvoeren van scripts onder Linux]][[nl:Automatisch uitvoeren van scripts onder 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]] | ||
<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_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]] | ||
Версия 19:16, 24 января 2016
nl:Automatisch uitvoeren van scripts onder 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
Эта статья является результатом автоматического перевода, выполняемого программного обеспечения. Вы можете посмотреть исходный статьи здесь.
Проблематичным
Вы хотите иметь возможность вызывать Linux команды и сценарии автоматически, несколько дней или часов.
Раствор
Создание правил cron для информирования системы команд для запуска, а также время или время переключения.
- Сначала необходимо проверить, что ваш сценарий является возможность запуска командной строки.
- Затем просто вставить в файл /etc/crontab, путь к сценарию и часов исполнения.
Вот состав линии cron:
[minute] [heure] [jour du mois] [mois] [jour de la semaine] [commande à lancer]
Примеры
#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
Включить автоматическое обновление комментариев