mrw wrote: 
> I'm glad you said that, because I have just lost my original response to
> your post. :)
> 
> I noticed, because I noticed your script was falling through the 'wait',
> which meant that avconv had in fact terminated itself. I was very
> surprised.
> 

I see. Wasn't sure whether you'd seen my perl version, but did suspect.

mrw wrote: 
> 
> I don't know enough about the intricacies of the exec to know if it is
> possible that perl has 'pre-seeded' the signal handling in some way. So
> I shall remain surprised.
> 
It seems to be that just enabling the 'sigtrap' pragma works, but take
if you take the use sigtrap out it doesn't !

Code:
--------------------
    #! /usr/bin/perl
  my @APPS = ( 'ffmpeg', 'avconv' );
  use sigtrap ;
  for my $app (@APPS)
  {
        exec { $app } $app, @ARGV ;
  }
  die "Can't find any apps to run!";
--------------------


mrw wrote: 
> 
> Incidentally, you had a 'kill -9', which I think should be a 'kill 9'.
> i.e. Kill a process, not a process group.
> 
You're right of course. Too much shell scripting...


------------------------------------------------------------------------
Parky's Profile: http://forums.slimdevices.com/member.php?userid=30307
View this thread: http://forums.slimdevices.com/showthread.php?t=103158

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to