Fabian wrote:
> I'm running Ubuntu Gutsy Gibbon and a Hauppauge PVR350 installed.
> Everything works fine. Now I decided to write a little cgi script, so
> I can schedule recordings through the web. Even this works except one
> thing: I can't change Channels. When I run the command
> "/var/www/tv/script/ivtv-tune --device=/dev/video0 -teurope-west -c
> $CHANNEL" nothing happens.
Does the user the web server runs as have permissions to write to
the /dev/video0 device node?
> I swichted users and tried as www-data. Doing so I receive this error
> message: "Segmentation fault".
Looking at the first few lines from the main() of ivtv-tune (v1.0.3):
int main(int argc, char *argv[])
{
[...]
char *homedir = getenv("HOME");
char *config = (char*)malloc(strlen(homedir) + strlen("/.ivtv-tune")
+ 1);
[...]
note that when HOME isn't set, ivtv-tune will get a SIGSEGV, because it
doesn't check for the case when getenv() returns NULL.
Short of actually fixing ivtv-tune, you could try setting the HOME
environment variable for the user in question. (ivtv-tune wants to save
a settings file in the user's home directory.)
Regards,
Andy
> Do you have any hint for me, how I can realize switching channels via
> my cgi script?
>
> Thank for your help in advance.
>
> Kind Regards,
> Fabian
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users