<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 6 May 2016 at 21:11, Hika van den Hoven <span dir="ltr"><<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hoi John,<br>
<span class=""><br>
Friday, May 6, 2016, 12:52:21 PM, you wrote:<br>
<br>
> Hi,<br>
<br>
> I have just upgraded my combined BE/FE from Ubuntu 12.04 to 14.04<br>
> (I realise I am behind the times!) Before the change, files output<br>
> from mythexport had permissions 666 (-rw-rw-rw-). Files output<br>
> since the upgrade have permissions 600 (-rw-------). This means<br>
> that the apache process that serves the output files, via an RSS<br>
> feed, cannot read the files and so they cannot be downloaded.<br>
><br>
> I was wondering if anyone else was having this problem, and knew    how to solve it?<br>
><br>
><br>
> By adding debugging messages to mythexport-daemon, as far as I<br>
> can see, the umask changes after startDaemon, which calls<br>
> Proc::Daemon::Init. According to the documentation for the latter,<br>
> changing the umask is normal behaviour. But as I say, I never had    this problem with 12.04.<br>
><br>
> Any ideas?<br>
><br>
> John<br>
><br>
><br>
<br>
</span>I don't know about cause, but you could solve it by wrapping the<br>
command in a small script:<br>
<br>
#!/bin/bash<br>
<your mythexport command><br>
chmod 0666 <your export filename><br>
<br>
This assuming the file is owned by the user running it. Else you have<br>
to use sudo and arrange for the right sudo rights.<br>
<br>
Tot mails,<br>
  Hika                            mailto:<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a><br>
<br>
"Zonder hoop kun je niet leven<br>
Zonder leven is er geen hoop<br>
Het eeuwige dilemma<br>
Zeker als je hoop moet vernietigen om te kunnen overleven!"<br>
<br>
De lerende Mens<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div>I fixed this in my config module I created to user Handbrake rather then the default avconv/ffmpeg profiles</div><div><br></div><div>you could add this line after the avconv command for which ever profile your using or my full config profile is below</div><div><br></div><div>system("chmod 666 \'$self->{_outputFile}$self->{_extension}\'");<br></div><div><br></div><div>/usr/share/mythexport/configs/iPhoneHandbrake.pm </div></div><br></div><div class="gmail_extra">==cut==<br></div><div class="gmail_extra"><div class="gmail_extra">#!/usr/bin/perl</div><div class="gmail_extra"><br></div><div class="gmail_extra">package iPhoneHandbrake;</div><div class="gmail_extra"><br></div><div class="gmail_extra">use ExportBase;</div><div class="gmail_extra"><br></div><div class="gmail_extra">our @ISA = qw(ExportBase);</div><div class="gmail_extra"><br></div><div class="gmail_extra">my $description = "Low Resolution (480x?) Handbrake H264 Settings.";</div><div class="gmail_extra">my $devices = "Handbrake iPhone & iPod Touch profile (example iPod Touch, iPhone, iPad";</div><div class="gmail_extra">my $notes = "Requires Handbrake, <a href=\"<a href="https://help.ubuntu.com/community/Medibuntu\">https://help.ubuntu.com/community/Medibuntu\</a>">activate Medibuntu</a>";</div><div class="gmail_extra">my $version = "1.0";</div><div class="gmail_extra"><br></div><div class="gmail_extra">sub new{</div><div class="gmail_extra">    my $class = shift;</div><div class="gmail_extra">    my $self = $class->SUPER::new(shift, shift, $description, $devices, $notes, $version);</div><div class="gmail_extra">    bless $self, $class;</div><div class="gmail_extra">    return $self;</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">sub export{</div><div class="gmail_extra">    my( $self ) = @_;</div><div class="gmail_extra"><br></div><div class="gmail_extra">    system("HandBrakeCLI -i \'$self->{_inputFile}\' -o \'$self->{_outputFile}$self->{_extension}\' --preset='iPhone & iPod Touch'");</div><div class="gmail_extra">    system("chmod 666 \'$self->{_outputFile}$self->{_extension}\'");<br></div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">1;</div><div>==cut==<br></div><div><br></div><div>Cheers,</div><div><br></div><div>Anthony</div></div></div>