Shell script to start media scan

Frequently asked questions. Tutorials, tips and tricks.
gr8pa2
Posts: 15
Joined: 14 Jan 2014, 15:00
Has thanked: 0
Been thanked: 5 times

Shell script to start media scan

Unread post 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?
Heruwar
Posts: 10
Joined: 09 May 2014, 21:37
Has thanked: 3 times
Been thanked: 7 times

Re: Shell script to start media scan

Unread post 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'
gr8pa2
Posts: 15
Joined: 14 Jan 2014, 15:00
Has thanked: 0
Been thanked: 5 times

Re: Shell script to start media scan

Unread post by gr8pa2 »

Thanks, was missing the ' '.
Post Reply