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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr




[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux