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

Executing script on Enigma2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sjamesamuel
    Board Senior Member
    • Jul 2013
    • 251

    Executing script on Enigma2

    Hi
    Is there a simple way to execute a script on Enigma2?
    The script runs manually, but I need to start it from the box.
    I tried ScriptExecuter, but its result window has to be open throughout the execution of the script.
    I want some method to run scripts in background.
    Thanks
  • gpaolobvt
    Senior Member
    • Jan 2012
    • 185

    #2
    Re: Executing script on Enigma2

    What about connecting to the box using telnet command?

    Using telnet you get a shell consol that operates inside the box.

    From this consol you can execute all command.
    Of course, in case of linux, the command must be "executeble".... use command chmod to set this feature.

    In case of "script" the most used are based on "python" language.
    In case of Dreambox, but i suppose also for other's model, there is the interpreter on board.

    So you can just need to write the script, and execute it just by typing yhe name of the file from inside the shell consol.

    bye

    Comment

    • aplok
      Experienced Board Member
      • Jun 2013
      • 1155

      #3
      Re: Executing script on Enigma2

      Originally posted by gpaolobvt
      ...So you can just need to write the script, and execute it just by typing yhe name of the file from inside the shell consol.
      that is the console way,

      but how to start the script with the satbox remote control ...
      directly, without console, without pc ...

      Comment

      • sjamesamuel
        Board Senior Member
        • Jul 2013
        • 251

        #4
        Re: Executing script on Enigma2

        @ gpaolobvt :
        Thanks but that's what I meant by "manually".
        I need to start it from the box like aplok explained.

        Comment

        • phil76
          Board Senior Member
          • Oct 2012
          • 200

          #5
          Re: Executing script on Enigma2

          From the control panel there is the submenù to execute script directly from remote control...did you intend this way?

          Comment

          • sjamesamuel
            Board Senior Member
            • Jul 2013
            • 251

            #6
            Re: Executing script on Enigma2

            Originally posted by phil76
            From the control panel there is the submenù to execute script directly from remote control...did you intend this way?
            I can't find this. Is it on Enigma2?

            Comment

            • phil76
              Board Senior Member
              • Oct 2012
              • 200

              #7
              Re: Executing script on Enigma2

              I have it on Egami image on a Venton hd STB.

              Comment

              • sjamesamuel
                Board Senior Member
                • Jul 2013
                • 251

                #8
                Re: Executing script on Enigma2

                Originally posted by phil76
                I have it on Egami image on a Venton hd STB.
                I don't think it's available for enigma2. I've searched a lot but couldn't find anything.

                Comment

                • phil76
                  Board Senior Member
                  • Oct 2012
                  • 200

                  #9
                  Re: Executing script on Enigma2

                  Probably your image does not have. I refer to Egami image on Venton STB.

                  Pheraphs on your image you need to install it as add-on.

                  Comment

                  • gianni253
                    Experienced Board Member
                    • Nov 2012
                    • 903

                    #10
                    Re: Executing script on Enigma2

                    I think there is no way to run a script interactively (i.e. from remote control) and do it in background, with no script window open.
                    Crond can run scripts in background, but it's not interactive ...

                    Comment

                    • aplok
                      Experienced Board Member
                      • Jun 2013
                      • 1155

                      #11
                      Re: Executing script on Enigma2

                      Originally posted by gianni253
                      I think there is no way to run a script interactively (i.e. from remote control) and do it in background, with no script window open.
                      Crond can run scripts in background, but it's not interactive ...
                      ... so it should not be possible to start a given script.py,

                      which launch such a system( 'mycommand.sh & ') ?

                      Comment

                      • sjamesamuel
                        Board Senior Member
                        • Jul 2013
                        • 251

                        #12
                        Re: Executing script on Enigma2

                        After some search and trials, I managed to do it.

                        I used a python script to run it

                        This makes it visible in plugins menu and also in the blue panel, so it can be run easily.

                        Comment

                        • phil76
                          Board Senior Member
                          • Oct 2012
                          • 200

                          #13
                          Re: Executing script on Enigma2

                          Originally posted by gianni253
                          I think there is no way to run a script interactively (i.e. from remote control) and do it in background, with no script window open.
                          Crond can run scripts in background, but it's not interactive ...
                          I didn't mean you can write script by rmote control, but you can upload to STB a list of precompiled scripts and then execute them from script menu choosing which one must be executed by remote control.

                          Comment

                          • sjamesamuel
                            Board Senior Member
                            • Jul 2013
                            • 251

                            #14
                            Re: Executing script on Enigma2

                            Originally posted by aplok
                            ... so it should not be possible to start a given script.py,

                            which launch such a system( 'mycommand.sh & ') ?
                            Yes, this worked too.

                            from os import system
                            system("script.sh &)

                            Thanks

                            Comment

                            Working...