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);

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"
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


vdr mailing list

Reply via email to