05-02-2018, 12:29 AM
(This post was last modified: 05-02-2018, 12:42 AM by TheOldPresbyope.)
(05-01-2018, 11:26 PM)Tim Curtis Wrote: If your rip and copy process is happening on a remote computer then:
1) update MPD database
telnet moode 6600
update
2) truncate library cache so Library panel reloads from scratch
ssh pi@moode
truncate /var/local/www/libcache.json --size 0
I'm not sure how to automate (2)
...
-Tim
If you set up authentication keys on the two hosts, you can use password-less ssh login to execute the command
Code:
ssh pi@moode truncate /var/local/www/libcache.json --size 0
Obviously this can be generalized. You could use this to execute both commands, one at a time, or you could put the script in pi's home directory and execute it using this same technique.