2012-05-02, 22:00
Hi all,
I have 3 PC's running XBMC Eden final with a central mysql database. I have spent next to 2 hours searching the forums and trying to get this to work, to no avail. Here is what I did.
I created a button in the UI that, when clicked, executes a simple script of mine that uses rsync to synchronize the Thumbnails and fanart from one PC to the others.
This is the script that I want to invoke:
The button when cllicked calls the builtin System.Exec function like so
1. rsync is not executed (/home/xbmc/output contains nothing)
2. XBMC crashes
Script runs fine on the command line.
I similarly created a button to launch Firefox and it works. What am i doing wrong?
I have 3 PC's running XBMC Eden final with a central mysql database. I have spent next to 2 hours searching the forums and trying to get this to work, to no avail. Here is what I did.
I created a button in the UI that, when clicked, executes a simple script of mine that uses rsync to synchronize the Thumbnails and fanart from one PC to the others.
This is the script that I want to invoke:
Code:
#!/bin/sh
rsync -avzh --stats --progress -e '/usr/bin/ssh -i /home/xbmc/.ssh/id_dsa' /home/xbmc/.xbmc/userdata/Thumbnails [email protected]:/home/xbmc/.xbmc/userdata 2>&1 > /home/xbmc/output
Code:
<onclick>System.Exec(/home/synctest.sh)</onclick>
2. XBMC crashes
Script runs fine on the command line.
I similarly created a button to launch Firefox and it works. What am i doing wrong?