Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

Need help tools for Cron on DM800HD pvr

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdlr1be
    Newbie
    • Feb 2013
    • 9

    Need help tools for Cron on DM800HD pvr

    Hello to all,

    Need help tools for Cron on DM800HD pvr

    I have a problem that does not riescho to understand. I have on my DM800HD PVR installed the image GeminiE2 10.05

    Everything is great, but the only problem is that riescho do not start funzzione Chron.

    I put forward the various commands and files you create crontab, but will not start ....

    I use cron to start registrazzione when one is not at home, with the tools of programming that imagine the various television programs.

    Maybe there's a thing to do, I have a correction to be implanted.

    Thank you all for your help.
  • aplok
    Experienced Board Member
    • Jun 2013
    • 1155

    #2
    Re: Need help tools for Cron on DM800HD pvr

    have you checked if the deamon crond is started ?

    $ telnet ipbox

    root
    dreambox

    $ ps aux |grep cron

    Comment

    • cdlr1be
      Newbie
      • Feb 2013
      • 9

      #3
      Re: Need help tools for Cron on DM800HD pvr

      Originally posted by aplok
      have you checked if the deamon crond is started ?

      $ telnet ipbox

      root
      dreambox

      $ ps aux |grep cron



      Comment

      • gianni253
        Experienced Board Member
        • Nov 2012
        • 903

        #4
        Re: Need help tools for Cron on DM800HD pvr

        Looks like your crond is running fine.
        The only thing to do now is writing the entries you need in crontabs file.

        Comment

        • cdlr1be
          Newbie
          • Feb 2013
          • 9

          #5
          Re: Need help tools for Cron on DM800HD pvr

          Hello,

          I followed what you wrote above

          I put in the folder usr / script
          Files :
          - ToggleStandby.sh to the dream ; watch;
          - WakeFromStandby.sh to transform the dream

          I have written to the file ; ToggleStandby.sh placed in usr / script folder and uitable atributti 755

          wget -q- O - "http:// name : password @ Dream / web / powerstate newstate Ip = 0? "> / dev / NULLL

          And this in WakeFromStandby.sh updated file in the usr / directory script and uitable atributti 755

          wget -q- O - "The Dream of http://Nameassword @ IP / web / powerstate newstate = 4 "> / dev / null

          This created the root file name, to etc / cron / crontabs

          50 15 *** / usr / script / ToggleStandby.sh
          55 15 *** / usr / script / WakeFromStandby.sh

          so 15.50 goes into sleep mode
          He leaves 15.55

          That's why I went with the remote control to activate the cron

          ---- blue button > point 4 Service / daemons ---- > cron here OK, and adopted by the red - Order , the color yellow - Starup
          complete restart dream

          Once restarted the dream I went aveder and Cron and always red
          But the time of waiting programming (hence the 15.50 hours) mesa and the dream is in standby.

          But at 15:55 the dream and does not start.
          And as if the cron is not always active .

          My question , you can activate the cron to do that remains active.

          Thank you for your help

          Comment

          • aplok
            Experienced Board Member
            • Jun 2013
            • 1155

            #6
            Re: Need help tools for Cron on DM800HD pvr

            Originally posted by cdlr1be
            crontab -l

            50 15 *** / usr / script / ToggleStandby.sh
            55 15 *** / usr / script / WakeFromStandby.sh

            so 15.50 goes into sleep mode
            He leaves 15.55
            1. why the spaces in the script name ?
            1. why no spaces between '*'
            this looks better to me:
            50 15 * * * /usr/script/ToggleStandby.sh

            2. try to run them manually ( to test chmod, path, in/out, ...), ie:

            telnet

            root
            dreambox

            chmod 755 /usr/script/ToggleStandby.sh
            chmod 755 /usr/script/WakeFromStandby.sh

            source /usr/script/ToggleStandby.sh
            source /usr/script/WakeFromStandby.sh

            Comment

            • cdlr1be
              Newbie
              • Feb 2013
              • 9

              #7
              Re: Need help tools for Cron on DM800HD pvr

              Originally posted by aplok
              1. why the spaces in the script name ?
              1. why no spaces between '*'
              this looks better to me:
              50 15 * * * /usr/script/ToggleStandby.sh

              2. try to run them manually ( to test chmod, path, in/out, ...), ie:

              telnet

              root
              dreambox

              chmod 755 /usr/script/ToggleStandby.sh
              chmod 755 /usr/script/WakeFromStandby.sh

              source /usr/script/ToggleStandby.sh
              source /usr/script/WakeFromStandby.sh
              I put in the folder usr / script
              The files :
              - ToggleStandby.sh to put the Dream in ; Standby ;
              - WakeFromStandby.sh to turn the dream

              This what I've written the file ; ToggleStandby.sh put in the folder usr / script and uitable atributti 755

              wget -q- O - "http:// Name : password @ Ip 's Dream / web / powerstate ? newstate = 0" > / dev / NULLL

              And this in the file WakeFromStandby.sh put in the folder usr / script and uitable atributti 755

              wget -q- O - " http://Nameassword @ Ip 's Dream / web / powerstate ? newstate = 4"> / dev / null

              This created the file name root ; put into etc / cron / crontabs

              50 15 *** / usr / script / ToggleStandby.sh
              55 15 *** / usr / script / WakeFromStandby.sh

              so at 15.50 goes into standby
              restarts at 15.55

              that 's why I went with the remote control to activate the cron

              blue button ---- > point 4 Service / daemons ----> cron here as OK , and passed by the color red - Stopped , the color Yellow - Starup
              complete restart of the dream

              Once rebooted the dream I went aveder and Cron and ; always red
              But waitin time of programming that (hence the hours 15.50) mesa and the dream is in standby.

              But at 15:55 the dream and does not start.
              And as if the cron is not always active.

              My question , you can activate the cron to do that remains active .

              What I noticed that the cron runs the first line of the file that is located in the root crontabs.

              At the start, the first line of commandos relizza .. but the following nothing.

              The problem in my opinion and that the cron does not remain active dopod the execuzzione of the first commando

              I do not know how they do little to activate the cron after execuzzione the first line of the root files.

              Thanks for the help

              Comment

              • aplok
                Experienced Board Member
                • Jun 2013
                • 1155

                #8
                Re: Need help tools for Cron on DM800HD pvr

                Originally posted by cdlr1be
                But at 15:55 the dream and does not start.
                And as if the cron is not always active.

                My question , you can activate the cron to do that remains active .
                ...
                The problem in my opinion and that the cron does not remain active dopod the execuzzione of the first commando

                I do not know how they do little to activate the cron after execuzzione the first line of the root files.
                i'd like to know if:

                1. if the 2 scripts can be started manually as suggested here above,

                2. if the deamon crond is running or not running

                ps aux |grep cron

                Comment

                • cdlr1be
                  Newbie
                  • Feb 2013
                  • 9

                  #9
                  Re: Need help tools for Cron on DM800HD pvr

                  Originally posted by aplok
                  i'd like to know if:

                  1. if the 2 scripts can be started manually as suggested here above,

                  2. if the deamon crond is running or not running

                  ps aux |grep cron
                  Hello,

                  both script launched manually.

                  The cron runs well.

                  Proof when I reboot my Dreambox, prmière the line of my root file located in the folder etc / cron / crontabs, it runs.

                  But the following line from my root, where it is not éxucute.

                  In conclusion, if one task set, the cron works well though.
                  If several jobs, the first executes and others do not.

                  Well, thank you for help

                  Comment

                  • aplok
                    Experienced Board Member
                    • Jun 2013
                    • 1155

                    #10
                    Re: Need help tools for Cron on DM800HD pvr

                    Originally posted by cdlr1be
                    In conclusion, if one task set, the cron works well though.
                    If several jobs, the first executes and others do not.
                    ... so, the first script can be reached and launched for run by crond

                    and not the second one

                    my suggestion:
                    - edit such a test case crontab
                    ( i think to be correct when i say that the filecrontab can be modified exclusively with the command crontab -e ...)

                    50 15 * * * /usr/script/ToggleStandby.sh
                    52 15 * * * /usr/script/ToggleStandby.sh

                    55 15 * * * /usr/script/WakeFromStandby.sh


                    and to log this, insert such a line in the script:


                    {
                    echo ---
                    echo $(date '+%y%m%d.%H%M%S') $0
                    ps aux |grep cron
                    echo
                    }>>/var/tmp/my.log

                    Comment

                    • cdlr1be
                      Newbie
                      • Feb 2013
                      • 9

                      #11
                      Re: Need help tools for Cron on DM800HD pvr

                      Originally posted by aplok
                      ... so, the first script can be reached and launched for run by crond

                      and not the second one

                      my suggestion:
                      - edit such a test case crontab
                      ( i think to be correct when i say that the filecrontab can be modified exclusively with the command crontab -e ...)

                      50 15 * * * /usr/script/ToggleStandby.sh
                      52 15 * * * /usr/script/ToggleStandby.sh

                      55 15 * * * /usr/script/WakeFromStandby.sh


                      and to log this, insert such a line in the script:


                      {
                      echo ---
                      echo $(date '+%y%m%d.%H%M%S') $0
                      ps aux |grep cron
                      echo
                      }>>/var/tmp/my.log
                      Hello,

                      test but nothing, I think I did not understand what you're asking to do.

                      I will continue to search for your honnetemnt I do not or just the bug

                      Comment

                      • gianni253
                        Experienced Board Member
                        • Nov 2012
                        • 903

                        #12
                        Re: Need help tools for Cron on DM800HD pvr

                        Originally posted by cdlr1be
                        ... In conclusion, if one task set, the cron works well though.
                        If several jobs, the first executes and others do not.
                        Looks like you have a bad line termination problem, so the first line is well executed but all the others are lost.
                        Maybe are you using a non unix editor for crontab ? (such as notepad)

                        Comment

                        • cdlr1be
                          Newbie
                          • Feb 2013
                          • 9

                          #13
                          Re: Need help tools for Cron on DM800HD pvr

                          Originally posted by gianni253
                          Looks like you have a bad line termination problem, so the first line is well executed but all the others are lost.
                          Maybe are you using a non unix editor for crontab ? (such as notepad)
                          Hello,

                          I generates the crontab via Cron tools menu of my image Gemini2 5.10
                          I do not édietur uses.

                          Comment

                          Working...