Hi all,
I'm a beginner fan of dreambox, I looking to coding some useful scripts, my question is :
there is any way to execute script located on cgi-bin folder without using http (wget & webserver) ?
I got tired to find cgi-bin folder and their scripts
Thank you
Execute cgi script without using http / wget
Started by shellux, 18 Jun 2010 03:27
6 replies to this topic
Re: Execute cgi script without using http / wget #2
Re: Execute cgi script without using http / wget #3
Posted 18 June 2010 - 10:24
Which box do you use? There is no cgi-bin directory with separate scripts. On enigma1 the cgi-bin requests are directly handled by enigma:
check the sources: http://openpli.pli-i...xbox/enigma/src search for "dyn_resolver->addDyn" in the enigma_dyn*.cpp files.
check the sources: http://openpli.pli-i...xbox/enigma/src search for "dyn_resolver->addDyn" in the enigma_dyn*.cpp files.
Re: Execute cgi script without using http / wget #4
Re: Execute cgi script without using http / wget #5
Posted 24 August 2010 - 10:47
There is no problem with using wget commands from within a shell script. But a few hints to help you.
use the -O filename option to write results to a file, a /tmp/wgetout.tmp would remain until deleted or a system reboot.
ues -q to suppress progress feedback
end the command with >/dev/null to write result to the black hole.
examples:
wget -q -O/tmp/boxinfo.tmp - http://127.0.0.1/web/about - writes a file of information
wget -q -O - http://127.0.0.1/web...streload?mode=0 1&2 >/dev/null will reload the channle list and bouquets from file. Useful if you use an external method of editing the lamedb file as it is the only way to prevent the fie from being overwritten from memory during a shutdown/reboot sequence. As shown the command will execute without reporting results to the console.
use the -O filename option to write results to a file, a /tmp/wgetout.tmp would remain until deleted or a system reboot.
ues -q to suppress progress feedback
end the command with >/dev/null to write result to the black hole.
examples:
wget -q -O/tmp/boxinfo.tmp - http://127.0.0.1/web/about - writes a file of information
wget -q -O - http://127.0.0.1/web...streload?mode=0 1&2 >/dev/null will reload the channle list and bouquets from file. Useful if you use an external method of editing the lamedb file as it is the only way to prevent the fie from being overwritten from memory during a shutdown/reboot sequence. As shown the command will execute without reporting results to the console.
Technomate box user (TM9100, TM800HD) and moderator on allsats.co.uk
Linux/unix fan for many years.
Re: Execute cgi script without using http / wget #6
Posted 11 March 2011 - 00:37
I have problem to execut script using cgi-bin on my dm500 E1
I have this
<execute name="reload Bouquest"
target="wget -O- -q http://127.0.0.1/cgi-bin/admin?command=reloadUserBouquets"
helptext="Reload"
confirmation = "Are you sure?"/>
Problem is the window of ppanle is freezing and I cannot close the window and I have to reboot.
How can I execute this command or script after closed window of PPanel? becouse this command is working well via telnet.
Or maybe another way
Maybe is there anather command to reload user bouquest ??
Please help.
I have this
<execute name="reload Bouquest"
target="wget -O- -q http://127.0.0.1/cgi-bin/admin?command=reloadUserBouquets"
helptext="Reload"
confirmation = "Are you sure?"/>
Problem is the window of ppanle is freezing and I cannot close the window and I have to reboot.
How can I execute this command or script after closed window of PPanel? becouse this command is working well via telnet.
Or maybe another way
Maybe is there anather command to reload user bouquest ??
Please help.
Re: Execute cgi script without using http / wget #7
Posted 19 March 2011 - 11:52
<file name="reload Bouquest" url="http://127.0.0.1/cgi...adUserBouquets" dontCheck="true"/>
Many answers to your question can be found in our wiki: http://openpli.org/wiki
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users