[mythtv-users] Anyone using in crontab?
nospam312
nospam312 at gmail.com
Sun Dec 23 20:13:01 UTC 2007
> > I am using the script available on the Wiki at this URL to generate
> > preview images.
> > http://www.mythtv.org/wiki/index.php/Generatevideothumbs.pl
> What user are you executing this as from teh commandline? Is it
> the same user whose crontab you've added a call to thte script to?
> Doe the user running the crontab have rights to write into the output
> directory of the mplayer command? (/tmp by default )
I am using the same user as when I run the script myself and it works
fine. To my knowledge /tmp has full rights (drwxrwxrwxt) - I seem to
be able to do anything in this directory whatever user I am logged in
as.
> > However when I add the script to my crontab the script fails when it
> > calls the system("mplayer","-noframedrop","-ss",$SKIP,"-vo","jpeg:quality=50:outdir=$OUTPATH","-frames","2", at VC,"-nosound",$FILE);
> > line as the 00000002.jpg file is not generated and therefore the mv
> > command fails.
> I'd definitely add the full path to the call to mplayer.
I have tried this and it does not make any difference for me but I
have left this change in.
> I don't see any reference to $OUTPATH/$FRAME in that mplayer
> command, yet that's what the mv command is lookign for.
> my $FRAME='00000002.jpg'
mplayer uses a fixed name of 00000002.jpg so its not needed in the
command. I think the command also creates a 00000001.jpg (i.e. -f 2
two frames created).
> Check the umask of the user that's running the cron entry.
ot sure how to do this. The Perl script runs fine if run myself it
just does not run in cron so it should mean its setup correctly.
Any other ideas - I have posted a reply regarding my environment
variables a few minutes ago.
TIA
More information about the mythtv-users
mailing list