Page 1 of 1

Shell script to start media scan

Posted: 18 Nov 2015, 21:45
by gr8pa2
I use a link to start a media scan but I wish to create a shell script that will start a scann after new music is imported.

http://host:4040/rest2/startRescan.view ... rest&f=xml

I tried with curl, but I always get an error message.

Anybody can help?

Re: Shell script to start media scan

Posted: 20 Nov 2015, 19:10
by Heruwar
What error message do you get?

This works fine for me on version 6.0.7760.

curl 'http://localhost:4040/rest2/startRescan ... est&f=json'

Re: Shell script to start media scan

Posted: 24 Nov 2015, 16:05
by gr8pa2
Thanks, was missing the ' '.