Hi,
I used the service program (service.cronxbmc) to execute a bash shell script in my Raspberry-pi updatet with the latest Openelec version (2.99)
I edited the cron.xml file: the script every 5 minutes
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
<?xml version="1.0" ?>
<cron>
<job name="TamTam" command="System.ExecWait(/storage/.xbmc/script/tamtam/tamtam.bash)" expression="*/5 * * * *" show_notification="true" />
</cron>
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
It works, but a strange message is stored int xbmc.log file:
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
23:30:00 T:2952533088 NOTICE: service.cronxbmc: TamTam will run again on 02-21-2013 23:35
23:30:00 T:3042848768 NOTICE: ProcessMessage: Failed to suspend AudioEngine before launching external program
23:30:10 T:3042848768 FATAL: ProcessMessage: Failed to restart AudioEngine after return from external player
23:35:00 T:2952533088 NOTICE: service.cronxbmc: running command TamTam
23:35:00 T:2952533088 NOTICE: service.cronxbmc: TamTam will run again on 02-21-2013 23:40
23:35:00 T:3042848768 NOTICE: ProcessMessage: Failed to suspend AudioEngine before launching external program
23:35:03 T:3042848768 FATAL: ProcessMessage: Failed to restart AudioEngine after return from external player
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
The error is displayed even if a very simple bash shell is executed:
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
#! /bin/bash
# this is the body of TanTan.bash shell
date >> /storage/.xbmc/script/tamtam/tamtam.txt
----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
Of course I changed the rwx permision of directory and tamtam.bash script using chmod -R 777 /storage/.xbmc/script command.
Have you any idea about the problem ?
Thank you very much for your kindness
regards
Luigi Ferrari
Ferrari
Junior Member Posts: 8 Joined: Nov 2012 Reputation: 0 |
2013-02-22 14:24
Post: #31
|
| find quote |
robweber
Fan Joined: Sep 2009 Reputation: 15 |
2013-02-23 04:38
Post: #32
I've never seen this error before, but I usually only use the cron program to run xbmc internal commands (ie PlayMedia, etc). My best guess here is that there is an issue suspending AudioEngine when your bash script is executed. According to the Wiki the System.ExecWait command is supposed to suspend XBMC until the external process completes. Apparently AE doesn't like this and is throwing and error.
If you can collect a full debug log and post this on http://trac.xbmc.org - I have a feeling it may be an XBMC bug. |
| find quote |

Search
Help