2010-01-09, 20:58
ok I have been reading the wiki and searching but seem to have hit that place where it should work but doesn't seem to...
ok long story short, I have a python script that runs a bash script, I cannot seem to get xbmc-send command working in my bash...
testsudo.py - this calls the bash script in same directory (so I can launch from scripts section (I tried System.Exec in remote.xml but it would close xbmc). The idea is that I would use RunScript from remote.xml once I get it working
---testsudo.py--
----------------
testsudo - this is the bash script that unmounts and mounts my nfs share (long story has to do with smb/nfs mix not updating right), then runs the UpdateLibrary(video) command
--testsudo--
------------
The umount and mount command works (another battle with suboers file)
the xbmc-send command works from terminal (or seems to, says its sending the command).
But when I run testsudo.py from xbmc scripts section, the library doesn't seem to update (new files do show up in videos section but not movies section). I do not see the dialog of "scan for content" that I see when I run the XBMC.UpdateLibrary from remote.xml...
I have read that I could use curl/get via the http server but I would rather not turn it on so that is why I am trying the xbmc-send package/command...
Any ideas? I am willing to bet its something simple...
ok long story short, I have a python script that runs a bash script, I cannot seem to get xbmc-send command working in my bash...
testsudo.py - this calls the bash script in same directory (so I can launch from scripts section (I tried System.Exec in remote.xml but it would close xbmc). The idea is that I would use RunScript from remote.xml once I get it working
---testsudo.py--
Code:
import os
os.system('/home/htpc/.xbmc/scripts/testsudo')
testsudo - this is the bash script that unmounts and mounts my nfs share (long story has to do with smb/nfs mix not updating right), then runs the UpdateLibrary(video) command
--testsudo--
Code:
#!/bin/bash
sudo umount <path>
sudo mount -a
xbmc-send --action="XBMC.UpdateLibrary(video)"
The umount and mount command works (another battle with suboers file)
the xbmc-send command works from terminal (or seems to, says its sending the command).
But when I run testsudo.py from xbmc scripts section, the library doesn't seem to update (new files do show up in videos section but not movies section). I do not see the dialog of "scan for content" that I see when I run the XBMC.UpdateLibrary from remote.xml...
I have read that I could use curl/get via the http server but I would rather not turn it on so that is why I am trying the xbmc-send package/command...
Any ideas? I am willing to bet its something simple...