<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 11:35 AM, Ian Evans <span dir="ltr"><<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sort of seeing the same thing here. Script works fine when run by<br>
25-fixes, but still shows up as failed. I guess I need to ignore the<br>
red in the job queue. :-)<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br clear="all">Ok. I was finally able to get a little more info. I will continue digging, but here is what I have. My user job 3 looks like this normally:<br><br>/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> exportdir=/var/lib/mythtv/export starttime=%STARTTIME% chanid=%CHANID% size=720x480 aspect=16:9 acodec=libaacplus<br>
<br>right now I have it set to look like this:<br><br>/usr/local/bin/ipod.sh exportdir=/var/lib/mythtv/export starttime=%STARTTIME% chanid=%CHANID% size=720x480 aspect=16:9 acodec=libaacplus<br><br>the ipod.sh script looks like this.<br>
------------------------------------------------------------------------------------------------<br>#!/bin/bash<br><br>echo "Environment variables:" > /tmp/export.log<br>export >> /tmp/export.log<br>echo "Exit status before export command $?" >> /tmp/export.log<br>
echo "/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> $*" >> /tmp/export.log<br>/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> $*<br><br>ret=$?<br><br>echo "exit status after attempted export $ret" >> /tmp/export.log<br>
<br>------------------------------------------------------------------------------------------------<br><br>The export log contains the following.<br>---------------------------------------------------------<br>Environment variables:<br>
declare -x AVAHI_COMPAT_NOWARN="1"<br>declare -x BOOT_IMAGE="MythTV"<br>declare -x CONSOLE="/dev/console"<br>declare -x HOME="/etc/mythtv"<br>declare -x INIT_VERSION="sysvinit-2.86"<br>
declare -x MYTHCONFDIR="/etc/mythtv"<br>declare -x OLDPWD<br>declare -x PATH="/bin:/usr/bin:/sbin:/usr/sbin"<br>declare -x PREVLEVEL="N"<br>declare -x PWD="/"<br>declare -x RUNLEVEL="4"<br>
declare -x SHLVL="4"<br>declare -x TERM="linux"<br>declare -x prevlevel="N"<br>declare -x runlevel="4"<br>Exit status before export command 0<br>/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> exportdir=/var/lib/mythtv/export starttime=20120811183000 chanid=13888 size=720x480 aspect=<br>
16:9<br>exit status after attempted export 255<br><br>---------------------------------------------------------<br><br><br><br>Now if i take the command line "/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> exportdir=/var/lib/mythtv/export
starttime=20120811183000 chanid=13888 size=720x480 aspect=16:9
acodec=libaacplus" and run it manually it works fine.<br><br><br>I realize exit status 255 is special, but the point is the same. My original job 3 fails, but if I use the same options and run it from the command line it works fine. I am not sure how to see what error code the myth job queue is giving. It never appears in my logs.<br>
<br><br>-- <br>Working on World Domination since 2001<br><br>