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

Continuous zapping through channels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gianni253
    Experienced Board Member
    • Nov 2012
    • 903

    #31
    Re: Continuous zapping through channels

    Originally posted by sjamesamuel
    -Would you please tell me how to make a script to stop the running one?
    Suppose your looping script is named "my_looping_script.sh".
    Just write a simple script like this:
    Code:
    #!/bin/sh
    killall -9 my_looping_script.sh
    exit 0
    Execute it and your looping script will be killed.
    Bye !

    Comment

    • sjamesamuel
      Board Senior Member
      • Jul 2013
      • 251

      #32
      Re: Continuous zapping through channels

      Thanks Gianni and aplok for the help

      In the meantime, I wrote a C# program for continuous zapping.
      You enter the delay in seconds, and ip. Then select up/down zapping.
      This is for Enigma2 only.

      Comment

      • aplok
        Experienced Board Member
        • Jun 2013
        • 1155

        #33
        Re: Continuous zapping through channels

        E2 Zap.rar (52.4 KB, 0 views)

        nice job, congratulations

        Comment

        • gianni253
          Experienced Board Member
          • Nov 2012
          • 903

          #34
          Re: Continuous zapping through channels

          Originally posted by sjamesamuel
          In the meantime, I wrote a C# program for continuous zapping.
          Well done sjamesamuel ... it's a nice thing to share you work with other mates !

          Comment

          • sjamesamuel
            Board Senior Member
            • Jul 2013
            • 251

            #35
            Re: Continuous zapping through channels

            Thanks
            I still can't run the script though.
            I get a message: \usr...\scriptname.sh not found.
            Execution finished

            Here is the script:

            Code:
            #!/bin/sh
            
            while [ 1 ]
            do
            wget -q [url]http://192.168.0..../web/remotecontrol?command=106[/url]
            sleep 5
            done
            
            exit 0

            Comment

            • aplok
              Experienced Board Member
              • Jun 2013
              • 1155

              #36
              Re: Continuous zapping through channels

              Originally posted by sjamesamuel
              I get a message: \usr...\scriptname.sh not found.[/CODE]
              \usr...\scriptname.sh

              or

              /usr.../scriptname.sh

              Comment

              • sjamesamuel
                Board Senior Member
                • Jul 2013
                • 251

                #37
                Re: Continuous zapping through channels

                Originally posted by aplok
                \usr...\scriptname.sh

                or

                /usr.../scriptname.sh

                Yes, you're right.
                The ScriptExecuter plugin gives this error:
                /usr.../scriptname.sh not found.
                The script is there and the permission is set, but it doesn't work.

                Comment

                • gianni253
                  Experienced Board Member
                  • Nov 2012
                  • 903

                  #38
                  Re: Continuous zapping through channels

                  Originally posted by sjamesamuel
                  The ScriptExecuter plugin gives this error:
                  /usr.../scriptname.sh not found.
                  The script is there and the permission is set, but it doesn't work.
                  Is the script a unix file ? (simple line feed as line break)
                  Did you use a good editor to write it it ? (not notepad !)
                  In doubt, launch it manually end report if it works.
                  If it works, it's a plugin configuration error.

                  Comment

                  • aplok
                    Experienced Board Member
                    • Jun 2013
                    • 1155

                    #39
                    Re: Continuous zapping through channels

                    try on a test script like:

                    echo 'ls /tmp >/tmp/a.txt; cat /tmp/a.txt' > /var/tmp/aa.sh

                    chmod 777 /var/tmp/aa.sh

                    source /var/tmp/aa.sh

                    Comment

                    • sjamesamuel
                      Board Senior Member
                      • Jul 2013
                      • 251

                      #40
                      Re: Continuous zapping through channels

                      Originally posted by gianni253
                      Is the script a unix file ? (simple line feed as line break)
                      Did you use a good editor to write it it ? (not notepad !)
                      In doubt, launch it manually end report if it works.
                      If it works, it's a plugin configuration error.
                      Thanks.
                      This was the problem. I opened the file with Editpad and converted it to Unix and now it starts.

                      When I launch it manually, it works properly.

                      But from script executer, it only gives the result without changing channel:
                      <?xml version="1.0" encoding="UTF-8"?>
                      <e2remotecontrol>
                      <e2result>True</e2result>
                      <e2resulttext>RC command '106' has been issued</e2resulttext>
                      </e2remotecontrol>

                      I couldn't even stop the display of the results without stopping the script.

                      Comment

                      • aplok
                        Experienced Board Member
                        • Jun 2013
                        • 1155

                        #41
                        Re: Continuous zapping through channels

                        Originally posted by sjamesamuel
                        ... file ... converted it to Unix
                        for this, you can try this:

                        dos2unix aa.txt

                        Comment

                        Working...