[vdr] vdr-iptv "sh -c" iptvstream.sh issue

Zouhair infonux at gmail.com
Mon Dec 23 23:43:12 CET 2013


Hi,

the external script iptvstream.sh not execute from iptv plugins ?
I get: "ERROR: Script execution failed: /etc/vdr/iptvstream.sh 1 4321"

after looking at the source code "protocolext.c"
------
// Create a new session for a process group
     ERROR_IF_RET(setsid() == -1, "setsid()", _exit(-1));
     if (execl(EXTSHELL, "sh", "-c", *cmd, (char *)NULL) == -1) {
        error("Script execution failed: %s", *cmd);
        _exit(-1);
...

I tried to execute it in the same way:

sh -c /etc/vdr/iptvstream.sh 1 4321
not work. (the shell exit with no execution)

I try with the cote (like):
sh -c "/etc/vdr/iptvstream.sh 1 4321"
or,
sh /etc/vdr/iptvstream.sh 1 4321
and, work fine.

Should add cote or remove "-c" in source code to fix this ?
Or any other solution ?


Using: vdr-iptv-2.0.0 and VDR 2.0.2

Thanks.




More information about the vdr mailing list