<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 11:35 AM, Ian Evans <span dir="ltr">&lt;<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>&gt;</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 &quot;Environment variables:&quot; &gt; /tmp/export.log<br>export &gt;&gt; /tmp/export.log<br>echo &quot;Exit status before export command $?&quot; &gt;&gt; /tmp/export.log<br>
echo &quot;/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> $*&quot; &gt;&gt; /tmp/export.log<br>/usr/local/bin/<a href="http://ipodexport.pl">ipodexport.pl</a> $*<br><br>ret=$?<br><br>echo &quot;exit status after attempted export $ret&quot; &gt;&gt; /tmp/export.log<br>
<br>------------------------------------------------------------------------------------------------<br><br>The export log contains the following.<br>---------------------------------------------------------<br>Environment variables:<br>
declare -x AVAHI_COMPAT_NOWARN=&quot;1&quot;<br>declare -x BOOT_IMAGE=&quot;MythTV&quot;<br>declare -x CONSOLE=&quot;/dev/console&quot;<br>declare -x HOME=&quot;/etc/mythtv&quot;<br>declare -x INIT_VERSION=&quot;sysvinit-2.86&quot;<br>
declare -x MYTHCONFDIR=&quot;/etc/mythtv&quot;<br>declare -x OLDPWD<br>declare -x PATH=&quot;/bin:/usr/bin:/sbin:/usr/sbin&quot;<br>declare -x PREVLEVEL=&quot;N&quot;<br>declare -x PWD=&quot;/&quot;<br>declare -x RUNLEVEL=&quot;4&quot;<br>
declare -x SHLVL=&quot;4&quot;<br>declare -x TERM=&quot;linux&quot;<br>declare -x prevlevel=&quot;N&quot;<br>declare -x runlevel=&quot;4&quot;<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 &quot;/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&quot; 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>