[mythtv-users] User job

Michael Watson michael at thewatsonfamily.id.au
Sun Aug 12 03:24:53 UTC 2012


On 12/08/2012 1:14 PM, Chris Porter wrote:
> Exit status before export command 0
> /usr/local/bin/ipodexport.pl <http://ipodexport.pl> 
> exportdir=/var/lib/mythtv/export starttime=20120811183000 chanid=13888 
> size=720x480 aspect=
> 16:9
> exit status after attempted export 255
>
> ---------------------------------------------------------
>
> Now if i take the command line "/usr/local/bin/ipodexport.pl 
> <http://ipodexport.pl> exportdir=/var/lib/mythtv/export 
> starttime=20120811183000 chanid=13888 size=720x480 aspect=16:9 
> acodec=libaacplus" and run it manually it works fine.

The command execute by your script is missing "acodec=libaacplus". Maybe 
there is a size limit to the jobqueue command..

You could change the command in the wrapper script to something like 
this: (so you can see whats going on withing ipodexport.pl)
/usr/local/bin/ipodexport.pl <http://ipodexport.pl> $* 1> 
/tmp/ipodexport.log 2>&1

Or you could also change to the following:

*Myth Job Command*
/usr/local/bin/ipod.sh starttime=%STARTTIME% chanid=%CHANID%

*/usr/local/bin/ipod.sh*
#!/bin/bash

echo "Environment variables:" > /tmp/export.log
export >> /tmp/export.log
echo "Exit status before export command $?" >> /tmp/export.log
echo "/usr/local/bin/ipodexport.pl <http://ipodexport.pl> $*" >> 
/tmp/export.log
/usr/local/bin/ipodexport.pl <http://ipodexport.pl> 
exportdir=/var/lib/mythtv/export $* size=720x480 aspect=16:9

ret=$?




More information about the mythtv-users mailing list