Re: [slim] CLI rescan question

2007-09-21 Thread gharris999
Yes! Thank you KDF. Netcat was exactly what I was looking for! Is there a handy internet acronym for thank you for figuring out what I was trying to ask, even though I was too dense to have really thought the question through... ? Anyway, this is now working perfectly for me for triggering

Re: [slim] CLI rescan question

2007-09-20 Thread gharris999
kdf;228384 Wrote: why not simply call the scanner directly in a shortcut: c:\program files\slimserver\server\scanner.exe -- rescan c:\path\to \music -kdf Because the server is a remote, linux machine. -- gharris999

Re: [slim] CLI rescan question

2007-09-20 Thread gharris999
OK, this seems to correctly trigger a new-music rescan on a remote slimserver: Code: wget -q -O - http://your_ss_ip:9000/Classic/settings/server/basic.html

Re: [slim] CLI rescan question

2007-09-20 Thread kdf
Using scanner.exe/scanner.pl with command line args as your shortcut would avoid any problems due to changes in the url. -kdf -- kdf kdf's Profile: http://forums.slimdevices.com/member.php?userid=7 View this thread:

Re: [slim] CLI rescan question

2007-09-20 Thread jaysung
Hi, Kdf, don't you realise? It is remote! You can't use any scanner.exe on the windows system since it is not there! One could actually run a shell script on the linux machine: #!/bin/bash mainloop { MUSICDIR=$1 SIZEOFMUSICDIR=`du -b` while $SIZEOFMUSICDIR -eq `du -b $1`; do sleep 300; done #

Re: [slim] CLI rescan question

2007-09-20 Thread kdf
my apologies. I'd still suggest a remote trigger, rather than relying on html commands. Of course, as I mentioned first, all you need to do is send 'rescan' through port 9090. You have a much better chance at have that last longer than a url. I'm sure you'll find many options (like netcat)

Re: [slim] CLI rescan question

2007-09-20 Thread jaysung
Hey netcat is great. Also for doing remote batching via the cli. I am just thinking about it. I like cli Interfaces much more than guis and if one polishes the cli a bit one can do all sorts of things with it. Thanks kdf. -- jaysung

Re: [slim] CLI rescan question

2007-09-19 Thread kdf
'rescan' causes SlimServer to rescan the entire music library 'rescan causes SlimServer to rescan only the playlist folder 'wipecache' causes SlimServer rescan its music library, reloading the music file information. This differs from the rescan command in that it first clears the tag

Re: [slim] CLI rescan question

2007-09-19 Thread gharris999
Actually, now that I think about it, I think my question is a little more involved. Goal: create a windows short-cut (or batch file) that when double-clicked, causes slimserver to do a new music scan. Why: I use scripts to mass prepare newly ripped music on my ripping machine (reflac, embed

Re: [slim] CLI rescan question

2007-09-19 Thread kdf
On 19-Sep-07, at 10:24 PM, gharris999 wrote: Actually, now that I think about it, I think my question is a little more involved. Goal: create a windows short-cut (or batch file) that when double-clicked, causes slimserver to do a new music scan. why not simply call the scanner directly in

Re: [slim] CLI rescan question

2007-09-19 Thread gharris999
Actually, I think it might be: Code: wget http://slim_minuet:9000/Classic/settings/server/basic.html --post-data=rescantype=1rescanrescan=Rescan I'll have to wait awhile, before trying this, though, since the wipe rescan currently running takes