dip;449228 Wrote:
> I have a similar problem like chris mason. I am running SC on an Ubuntu
> 9.04 machine which I use only as music server. Music is stored on local
> disk. The music directory (/media/Musik) on this disk is shared via
> samba.
> On my desktop PC I am running Windows XP. There I use MediaMonkey to
> hear music. The music directory from the linux machine is mapped as Z:
> so the path MediaMonkey uses to access the music files is Z:\Musik\...
>
> When I forget to set the block for SvrPowerControl manually, music
> suddenly stops when be played with MediaMonkey since the music server is
> sent to suspend mode by SvrPowerControl.
>
> I would like to start MediaMonkey through a batch file on Windows which
> first sets the block on the remote music server, then starts MediaMonkey
> and after closing MediaMonkey clears the block on the music server.
>
> How can I set and clear the block on the remote machine?
You can use my SCCLITool.exe utility that's available in the
SCPowerTool.zip download:
http://srvrpowerctrl.googlecode.com/files/SCPowerTool_latest.zip
Your batch file might look something like this:
play_media_monkey.cmd
Code:
--------------------
@echo off
set BROADCASTIP=192.168.1.255
set SCSERVERIP=192.168.1.200
set SCPORT=9090
set SCSERVERMAC=AABBCCDDEE
:checkwake
echo Checking scserver status..
ping %SCSERVERIP% -n 1 -w 10 >NUL 2>&1
if errorlevel 1 goto wakeup
goto awake
:wakeup
echo SCServer is asleep...attempting to wake it up..
rem Wakeup the server..
%windir%\util\wolcmd.exe %SCSERVERMAC% %BROADCASTIP% 255.255.255.0 7 >NUL 2>&1
sleep 18
goto checkwake
:awake
sleep 5
:setblock
%windir%\util\SCCliTool.exe srvrpowerctrl setblock Media_Monkey_Playing
viacli -h scserver -p %SCPORT%
:play_media_monkey
rem insert media_monkey command line here..e.g.:
start "Media Monkey" /WAIT "C:\Program Files\MediaMonkey\mediamonkey.exe"
:clearblock
%windir%\util\SCCliTool.exe srvrpowerctrl clearblock Media_Monkey_Done viacli
-h %SCSERVERIP% -p %SCPORT%
--------------------
You'll need to fix up the "set XXX=XXX" values to match your own setup.
And I'm totally guessing as to what the command line for Media Monkey
might be. You'll need to fix that up too.
You can get the wake-on-lan cmd line tool from
http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx. You can get
the sleep and other utilities as part of the Windows Server 2003
Resource Tool Kit from here:
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins