Posts: 3
Joined: Feb 2010
Reputation:
0
Does XBMC need to be running for this cron job to work?
I wake my PC with the internal clock and do some batches - but XBMC is not running - is there a way to start xbmc as well as part of these cron jobs?
Thanks
Alex
Posts: 3
Joined: Feb 2010
Reputation:
0
Hi - the PC itself is on.
It wakes up to run other jobs (4am)
the PC is running Mythbuntu and mythbackend/frontend. I recently added xbmc as an option from the myth menus to run when I want to watch videos (xbmc is the best video player/manager I know).
Therefore I don't need/want to run xbmc at start up. But I'd like to know what commands I would need to get it run - so I can then send the update library - then kill xbmc and the pc finishes it's other jobs (epg data fill etc) and shuts down. That way - any of my video files that also get automatically copied the PC - could be added to the library.
It's more for convenience, so that when I turn on the PC (in the evening after work etc) and choose xbmc from the myth menu - the latest files are there and I don't need to have update at startup.
The PC switches on for about 1 hour or so to run it's jobs, and sure I can also envoke it to run xbmc ?
any help would be appreciated.
Thanks
Posts: 1,265
Joined: Oct 2009
Reputation:
29
takoi
Team-Kodi Member
Posts: 1,265
so what was the conclusion? there's already several features that's live only so what exactly is the problem implementing something using, lets say, inotify?
Posts: 437
Joined: Nov 2009
Reputation:
0
As a software developer (by profession, not for XBMC), I am going to weigh in here. Watching directories might seem like an easy way to do this but it is not the brightest use of resources. You are initiating an action to get the movie/tv show/video there. Why not update the library when you actively put the content into the directory. If you do not want to put the burden on the person putting the content into the directory, run a cron job. The documentation above regarding cron will do a fine job or automating the process.
If you are worried about the machine being turned off, then have it update the library at startup. If you don't want it to update at startup, leave the machine on or make sure the cron runs when it is normally on. You cannot have your cake and eat it too.
Posts: 37
Joined: Jan 2008
Reputation:
0
Not to spank an old thread...
But any type of "automatic-thingy-that-may-or-may-not-take-a-while-to-complete" should be avoided... I haven't seen a single usecase yet that couldn't be resolved from the other end. Most download-clients (torrent/usenet/whatever) give you an option to execute a script when the download is complete. Make this script trigger the databaseupdate. If your XBMC-client isn't online at the time, just have it autoupdate on boot. This should cover most of the usecases.
I do agree that a decentralized db is the way forward, but this adds several new issues (relative network paths and such), besides, I think they are already working on it.
Christian...
Posts: 1,265
Joined: Oct 2009
Reputation:
29
takoi
Team-Kodi Member
Posts: 1,265
ok. thats all i wanted to know