[mythtv-users] User job
Chris Porter
hoodlum7 at gmail.com
Sun Aug 12 03:14:22 UTC 2012
On Mon, Aug 6, 2012 at 11:35 AM, Ian Evans <dheianevans at gmail.com> wrote:
> Sort of seeing the same thing here. Script works fine when run by
> 25-fixes, but still shows up as failed. I guess I need to ignore the
> red in the job queue. :-)
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
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:
/usr/local/bin/ipodexport.pl exportdir=/var/lib/mythtv/export
starttime=%STARTTIME% chanid=%CHANID% size=720x480 aspect=16:9
acodec=libaacplus
right now I have it set to look like this:
/usr/local/bin/ipod.sh exportdir=/var/lib/mythtv/export
starttime=%STARTTIME% chanid=%CHANID% size=720x480 aspect=16:9
acodec=libaacplus
the ipod.sh script looks like this.
------------------------------------------------------------------------------------------------
#!/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 $*" >> /tmp/export.log
/usr/local/bin/ipodexport.pl $*
ret=$?
echo "exit status after attempted export $ret" >> /tmp/export.log
------------------------------------------------------------------------------------------------
The export log contains the following.
---------------------------------------------------------
Environment variables:
declare -x AVAHI_COMPAT_NOWARN="1"
declare -x BOOT_IMAGE="MythTV"
declare -x CONSOLE="/dev/console"
declare -x HOME="/etc/mythtv"
declare -x INIT_VERSION="sysvinit-2.86"
declare -x MYTHCONFDIR="/etc/mythtv"
declare -x OLDPWD
declare -x PATH="/bin:/usr/bin:/sbin:/usr/sbin"
declare -x PREVLEVEL="N"
declare -x PWD="/"
declare -x RUNLEVEL="4"
declare -x SHLVL="4"
declare -x TERM="linux"
declare -x prevlevel="N"
declare -x runlevel="4"
Exit status before export command 0
/usr/local/bin/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.plexportdir=/var/lib/mythtv/export
starttime=20120811183000 chanid=13888
size=720x480 aspect=16:9 acodec=libaacplus" and run it manually it works
fine.
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.
--
Working on World Domination since 2001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120811/67537539/attachment.html>
More information about the mythtv-users
mailing list