הפעל אוטומטית את קבצי ה-script תחת לינוקס
ro:Rula automat script-uri sub Linux
ru:Автоматически запускать скрипты под Linux
pl:Automatycznie uruchamiać skrypty pod Linuksem
ja:Linux のスクリプトを自動的に実行します。
ar:تلقائياً بتشغيل البرامج النصية تحت لينكس
zh:自动运行在 Linux 下的脚本
de:Automatische Ausführung von Skripten unter Linux
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
מאמר זה הוא התוצאה של תרגום אוטומטי המבוצע על ידי תוכנה. אתה יכול להציג את מקור המאמר כאן.
בעייתי
אתה רוצה להיות מסוגל לקרוא פקודות לינוקס, scripts באופן אוטומטי, כמה ימים או שעות.
פתרון
יצירת כללים cron כדי ליידע את המערכת של הפקודות להפעיל גם הזמן או את השעה מיתוג.
- תחילה עליך לוודא את התסריט שלך הוא מסוגל להפעיל את שורת הפקודה.
- ואז פשוט הכנס הקובץ /etc/crontab, הנתיב אל קובץ ה-script ואת השעות של אכיפה.
. הנה ההרכב של קו 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
הפעלת רענון אוטומטי של התגובות