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

  • aplok
    replied
    Re: Continuous zapping through channels

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

    dos2unix aa.txt

    Leave a comment:


  • sjamesamuel
    replied
    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.

    Leave a comment:


  • aplok
    replied
    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

    Leave a comment:


  • gianni253
    replied
    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.

    Leave a comment:


  • sjamesamuel
    replied
    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.

    Leave a comment:


  • aplok
    replied
    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

    Leave a comment:


  • sjamesamuel
    replied
    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

    Leave a comment:


  • gianni253
    replied
    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 !

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    E2 Zap.rar (52.4 KB, 0 views)

    nice job, congratulations

    Leave a comment:


  • sjamesamuel
    replied
    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.

    Leave a comment:


  • gianni253
    replied
    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 !

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    -Would you please tell me how to make a script to stop the running one?
    i suggest this:
    kill -9 $( ps |grep myscript |grep -v grep |awk '{print $1}' )

    -Are there any documentations for this matter?
    --https://www.******.com/#q=bash+tutorial

    -Thanks
    you're welcome

    Leave a comment:


  • sjamesamuel
    replied
    Re: Continuous zapping through channels

    Thank you very much Gianni.
    You're always so helpful.

    I used this for channel up:
    wget -q -O dev/null http:// ip here /web/remotecontrol?comman
    d=106 for channel up (right key) as command and it worked!

    Channel down is 105.


    -Would you please tell me how to make a script to stop the running one?

    -Are there any documentations for this matter?

    Thanks

    Leave a comment:


  • aplok
    replied
    Re: Continuous zapping through channels

    ... just an idea

    if enigma1/2 traces the entries (from remote control) into a file,
    like such an history,

    if this enigma1/2 cmd-history-like file is readable and intelligible,

    we can then imagine a deamonized bash script reading it,
    to trap the some private key.combination
    to trig process

    Leave a comment:


  • gianni253
    replied
    Re: Continuous zapping through channels

    Originally posted by aplok
    how enigma1/2 can send this related message _code_ to the bash script ?
    It's only a one-way communication: bash script sends command to enigma1/2 but there's no return code.
    And if you want to know what's the channel you are currently tuned in, there's another command ...

    Leave a comment:

Working...