Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Update sources from command line?
#3
(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
[edit] Sorry, hit <enter> too quickly.
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.
Reply


Messages In This Thread
Update sources from command line? - by sjoerdju - 05-01-2018, 12:26 PM
RE: Update sources from command line? - by TheOldPresbyope - 05-02-2018, 12:29 AM
RE: Update sources from command line? - by DRONE7 - 05-03-2018, 10:22 PM
RE: Update sources from command line? - by DRONE7 - 05-10-2018, 06:20 AM

Forum Jump: