Mailing List archive

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

[vdr] Re: GRAB from reccmds.conf



> -----Original Message-----
> From: vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org]On Behalf Of
> Ulrich Petri
> Sent: Tuesday, March 09, 2004 1:17 AM
> To: vdr@linuxtv.org
> Subject: [vdr] Re: GRAB from reccmds.conf
>
>
> Lars Fredriksson wrote:
> > Hi!
> >
> > I have a problem when I'm trying to do a grab from
> > reccmds.conf - I just get
> > the following in syslog;
> >
> > Mar  8 20:01:01 digestive vdr[15643]: executing command
> > '/usr/src/VDR/svdrpsend.pl GRAB
> > '/video/%Klassisk_musik_för_små_barn/2004-01-24.11:23.50.99.rec''
> > Mar  8 20:01:31 digestive vdr[15643]: connect from 127.0.0.1,
> > port 47496 -
> > accepted
> > Mar  8 20:01:31 digestive vdr[15643]: ERROR (svdrp.c,354): Broken pipe
> >
> > the above is a axample when i have "/usr/src/VDR/svdrpsend.pl GRAB" in
> > reccmds.conf - but I get the same error when I'm using a
> > shell-script that
> > looks like:
> > "
> > #!/bin/sh
> > /usr/src/VDR/svdrpsend.pl GRAB /tmp/grabbed.jpg
> > "
>
> Hi,
>
> The problem is, that as long as the command from reccmds is running vdr is
> "blocked" (it accepts the SVDRP connection but cannot process it) so the
> command get lost and the connection is terminated before vdr can
> process it.
>
> I made myself a small script for such cases:
> send.sh:
> ------------------------
> #!/bin/sh
> sleep 1
> svdrpsend.pl $@
> ------------------------
>
> Which i call from my vdr scripts like:
> -----------------
> # do something
> # do another thing
> send.sh GRAB /blah.jpg &   # the & is the important thing
> -----------------
> So the main script ends because the other script was called with & and vdr
> is ready to accept the message.

Hi!

Tnx, but I don't really understand this, and I can't get it working ... ;-)

If i add a line like
Grep image  : /blah/send.sh GRAB /blah.jpg &
in /video/reccmds.

I've made a send.sh like yours above.

I still get the same problem, it locks for 10 seconds and then I get an log
output like above - and no image.

At the VDR console I see
sh: line 1: /video/%Recording/2004-01-24.11:23.50.99.rec: is a directory
Timeout

I don't know if the above errors has something to do about my problem, I
think that VDR sends the directory where the recording is tored after the
command in reccmd.conf (like "send.sh GRAB /blah.jpg &
/video/%Recording/2004-01-24.11\:23.50.99.rec/")

/Lars




-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index