إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

ارجو مساعده في عمل سكربت

تقليص
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • [طلب] ارجو مساعده في عمل سكربت

    ارجو مساعده في عمل سكربت يعمل لــ ملف ما رستارت كل 4 ساعات اذا امكن
    اسم ملف oscam

  • #2
    كود:
    man crontab
    والمرء ساع لأمر ليس يدركه .. والعيش شح وإشفاق وتأميل
    مدونتي
    http://www.silencker.com

    تعليق


    • #3
      عند تنفيذ الامر ظهر لي

      كود PHP:
      root@tony2007-desktop:~# man crontab
      CRONTAB(1)                                                                                                                      CRONTAB(1)
      NAME
             crontab 
      maintain crontab files for individual users (V3)
      SYNOPSIS
             crontab 
      [ -u user file
             crontab 
      [ -u user ] { -| -| -}
      DESCRIPTION
             crontab is the program used to install
      deinstall or list the tables used to drive the cron(8daemon in Vixie Cron.  Each user can
             have their own crontab
      , and though these are files in /var/spool/cron/crontabsthey are not intended to be edited directly.
             If 
      the /etc/cron.allow file existsthen you must be listed  therein  in  order  to  be  allowed  to  use  this  command.   If  the
             
      /etc/cron.allow  file does not exist but the /etc/cron.deny file does existthen you must not be listed in the /etc/cron.deny file
             in order to 
      use this command.  If neither of these files existsthen depending on site-dependent  configuration  parameters,  only
             the super user will be allowed to 
      use this command, or all users will be able to use this command. For standard Debian systemsall
             users may 
      use this command.
             If 
      the -u option is givenit specifies the name of the user whose crontab is to be tweaked.  If this option is not given,  crontab
             examines  
      "your"  crontab,  i.e., the crontab of the person executing the command.  Note that su(8can confuse crontab and that if
             
      you are running inside of su(8you should always use the -u option for safetyâs sake.
             
      The first form of this command is used to install a new crontab from some named file or standard input if the pseudo-filename ââ-ââ
             is given
      .
             
      The -l option causes the current crontab to be displayed on standard outputSee the note under DEBIAN SPECIFIC below.
             
      The -r option causes the current crontab to be removed.
             
      The  -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables.  After
             you 
      exit from the editorthe modified crontab will be installed automatically. If neither of the environment variables is defined,
             
      then the default editor /usr/bin/editor is used.
      DEBIAN SPECIFIC
             The  
      "out-of-the-box"  behaviour  for  crontab -l is to display the three line "DO NOT EDIT THIS FILE" header that is placed at the
             beginning of the crontab when it is installed
      The problem is that it makes the sequence
             crontab 
      -crontab 

      تعليق


      • #4
        اين انتم يا مشرفين
        ارجو مساعده

        تعليق


        • #5
          انت مش محتاج سكربت اصلا
          crontab استخدم
          ده هيخليك تنفذ اوامر في وقت محدد من غير سكرتات و لا حاجة
          ممكن بسهولة تعمل سكربت فيه الاتي reboot.sh
          #!/bin/bash
          sudo reboot

          و تحفظة و تديه صلاحيات التنفيذ /usr/bin
          chmod +x reboot.sh

          و تضيف سطر جديد في /etc/crontab
          sudo nano /etc/crontab
          0 0,4,8,12,16,20 * * * root /usr/bin/reboot.sh

          sudo /etc/init.d/cron restart
          بس كده
          او حد عنده تعليق ياريت يصحح لي لو مخطئ

          تعليق

          يعمل...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎