MinimServer Forum
rescan from command line - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: rescan from command line (/showthread.php?tid=2698)

Pages: 1 2


rescan from command line - dennis_k85 - 19-10-2015 12:52

Is there a way ti initiate a rescan from the command line. I want to add it to the auto USB mount/dismount code.

Dennis


RE: rescan from command line - simoncn - 19-10-2015 13:12

(19-10-2015 12:52)dennis_k85 Wrote:  Is there a way ti initiate a rescan from the command line. I want to add it to the auto USB mount/dismount code.

Dennis

What platform are you using to run MinimServer?


RE: rescan from command line - dennis_k85 - 19-10-2015 14:19

(19-10-2015 13:12)simoncn Wrote:  
(19-10-2015 12:52)dennis_k85 Wrote:  Is there a way ti initiate a rescan from the command line. I want to add it to the auto USB mount/dismount code.

Dennis

What platform are you using to run MinimServer?

Linux on an ARM.


RE: rescan from command line - simoncn - 19-10-2015 14:40

For any Linux platform, if you have installed MinimServer in the directory {installdir}, you can do:

echo "rescan" > {installdir}/minimserver/data/minimserver.pipe


RE: rescan from command line - dennis_k85 - 19-10-2015 14:58

(19-10-2015 14:40)simoncn Wrote:  For any Linux platform, if you have installed MinimServer in the directory {installdir}, you can do:

echo "rescan" > {installdir}/minimserver/data/minimserver.pipe

Thank you, I will try it tonight.


RE: rescan from command line - dennis_k85 - 21-10-2015 18:46

(19-10-2015 14:58)dennis_k85 Wrote:  
(19-10-2015 14:40)simoncn Wrote:  For any Linux platform, if you have installed MinimServer in the directory {installdir}, you can do:

echo "rescan" > {installdir}/minimserver/data/minimserver.pipe

Thank you, I will try it tonight.

echo "rescan" > /usr/src/minimserver/data/minimserver.pipe
never returns from the echo command and does not initiate a rescan. What am I doing wrong?

Dennis


RE: rescan from command line - simoncn - 21-10-2015 19:31

(21-10-2015 18:46)dennis_k85 Wrote:  echo "rescan" > /usr/src/minimserver/data/minimserver.pipe
never returns from the echo command and does not initiate a rescan. What am I doing wrong?

Dennis

Are you sure MinimServer is running when you run the echo command? How are you starting MinimServer? Does the user running the echo command have the necessary privilege to write to the minimserver.pipe file?


RE: rescan from command line - dennis_k85 - 21-10-2015 19:34

(21-10-2015 19:31)simoncn Wrote:  
(21-10-2015 18:46)dennis_k85 Wrote:  echo "rescan" > /usr/src/minimserver/data/minimserver.pipe
never returns from the echo command and does not initiate a rescan. What am I doing wrong?

Dennis

Are you sure MinimServer is running when you run the echo command? How are you starting MinimServer? Does the user running the echo command have the necessary privilege to write to the minimserver.pipe file?

Yes Minim server is running. It is started on system boot. I can play songs from it.
Yes I tried the command from an ssh session logged in as root.

Dennis


RE: rescan from command line - simoncn - 21-10-2015 21:46

(21-10-2015 19:34)dennis_k85 Wrote:  Yes Minim server is running. It is started on system boot. I can play songs from it.
Yes I tried the command from an ssh session logged in as root.

Dennis

How are you starting MinimServer on system boot? Have you used the minimserver/bin/setup command to enable autostart?


RE: rescan from command line - dennis_k85 - 21-10-2015 21:47

(21-10-2015 21:46)simoncn Wrote:  
(21-10-2015 19:34)dennis_k85 Wrote:  Yes Minim server is running. It is started on system boot. I can play songs from it.
Yes I tried the command from an ssh session logged in as root.

Dennis

How are you starting MinimServer on system boot? Have you used the minimserver/bin/setup command to enable autostart?
Yes