تلقائياً بتشغيل البرامج النصية تحت لينكس
Jump to navigation
Jump to search
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
هام: تمت ترجمة هذه المقال باستخدام برامج للترجمة الآلية, لقرائة النسخة الأصلية أنقر على الرابط
إشكالية
كنت تريد أن تكون قادراً على استدعاء أوامر لينكس، والبرامج النصية تلقائياً، بعض الأيام أو الساعات.
الحل
إنشاء القواعد كرون لإعلام نظام الأوامر لتشغيل فضلا عن الوقت أو وقت التحويل.
- تحتاج أولاً للتحقق من أن البرنامج النصي الخاص بك قادراً على تشغيل سطر الأوامر.
- قم فقط بإدراج في الملف /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
تمكين المحدث التلقائي للتعليق