Shell script to start media scan

Frequently asked questions. Tutorials, tips and tricks.

Shell script to start media scan

Unread postby gr8pa2 » 18 Nov 2015, 21:45

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

Re: Shell script to start media scan

Unread postby Heruwar » 20 Nov 2015, 19:10

What error message do you get?

This works fine for me on version 6.0.7760.

curl 'http://localhost:4040/rest2/startRescan.view?u=username&p=password&v=2.0.0&c=rest&f=json'
Heruwar
 
Posts: 10
Joined: 09 May 2014, 21:37
Has thanked: 5 times
Been thanked: 7 times

Re: Shell script to start media scan

Unread postby gr8pa2 » 24 Nov 2015, 16:05

Thanks, was missing the ' '.
gr8pa2
 
Posts: 14
Joined: 14 Jan 2014, 15:00
Has thanked: 0 time
Been thanked: 5 times


Return to Info

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron