vdradmind.conf

Tobias Grimm pkg-vdr-dvb-devel@lists.alioth.debian.org
Sun, 16 Jan 2005 21:32:09 +0100


Thomas Schmidt wrote:

>How does it deal with the filenames then? (I am about to add a patch
>to vdr which will forbit to overwrite files with the GRAB-Command, so
>the current solution with a static filename will not work anymore.)
>  
>
It uses:

use File::Temp qw(tempfile);
...
sub grab_picture {
....
    my $file = (tempfile("vdr-XXXXX", SUFFIX => ".jpg"))[1];
....

Tobias