Re: Continuous zapping through channels
for this, you can try this:
dos2unix aa.txt
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
-
Re: Continuous zapping through channels
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:
-
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:
-
Re: Continuous zapping through channels
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:
-
-
-
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:
-
-
Re: Continuous zapping through channels
E2 Zap.rar (52.4 KB, 0 views)
nice job, congratulationsLeave a comment:
-
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:
-
Re: Continuous zapping through channels
Just write a simple script like this:
Code:#!/bin/sh killall -9 my_looping_script.sh exit 0
Bye !Leave a comment:
-
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 welcomeLeave a comment:
-
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?
ThanksLeave a comment:
-
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 processLeave a comment:
-
Re: Continuous zapping through channels
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:
Leave a comment: