Question about Updating Databases via CMD
#1
Hey Guys - 

Quick question...  I do all scraping via the TMM3 GUI yet have scripts that move media titles around nightly.  What I'd like to do is have the datasources automatically update each morning after the scripts that move media complete.  I understand that the string "tinyMediaManagerCMD.exe -update" will update the datasources, but have two questions concerning it...
  1. Does the TMM3 GUI need to be closed in order for the string above to work properly?  If not closed, will changes automatically be reflected in the GUI following the update?
  2. If the GUI does need to be closed first, is there a string that will safely close the GUI if accidentally left open?  If not could script something to only run update string if GUI task isn't present or use taskkill, but don't want to risk DB corruption.
Thanks!
- BzowK -
Dedicated Kodi System
Kodi 17.6 (Artic Zephr) / Windows 10 x64 Pro / EventGhost / Flirc / Steam Gaming
QuadCore A8-5600K, 3600MHz / 4gb RAM / 240gb SSD / Nvidia Geforce 660 GTX (HDMI out to 48" TV) / Flirc
Reply
#2
No, and no.
The database can only be opened by ONE process at a time, and if the GUI is open, cmd process will abort.

You might want to kill the java process prior executing your TMM cmd batch file.
Although not the safest method, it should not harm the DB...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
Reply



Logout Mark Read Team Forum Stats Members Help
Question about Updating Databases via CMD0
This forum uses Lukasz Tkacz MyBB addons.