Hi Gordon,

I finally got around to configuring everything and it is working fine.

It somehow slipped my attention that you recommended to delete the old
preferences file before installing the new version, so I didn't. Still,
everything seems to be okay. Is there a reason why it should not?

There is one little problem with the settings dialog, though, which is
probably due to the way Perl handles string variables. I was thinking
about a way to avoid having to tell people to copy my VB script to the
system32 directory and ended up trying to use the %USERPROFILE%
environment variable which points to the user's settings directory. In
order to pass the variable to the cmd executable unharmed, it has to be
enclosed in double quotes. The actions I am currently using all look
like this:
Code:
--------------------
    cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" /Action:busy /Log:true
--------------------
This setting is not properly loaded back into your settings dialog but
cut off at the quotes:
Code:
--------------------
    cmd /C cscript 
--------------------
So the next time I save the settings, the actions will be broken.

While I am writing that everything is fine, I notice that this is
actually not quite true. While I am playing music and SPC keeps telling
LightsOut to leave the server alone, it now and then sends a hibernate
action for no apparent reason. My idle timeout is set to 15 minutes, so
this should not be happening:
Code:
--------------------
    [09-06-21 15:37:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:38:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:39:21.0028] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:40:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:41:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:42:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:43:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:44:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:45:21.0133] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:46:21.0028] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:47:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:48:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:50:26.0007] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:hibernate /Log:true
  [09-06-21 15:51:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:52:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:53:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:54:21.0029] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:55:21.0027] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:56:21.0028] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:57:21.0147] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
  [09-06-21 15:58:21.0183] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (310) 
Now trying to execute cmd /C cscript "%USERPROFILE%\ConfigureLO.vbs" 
/Action:busy /Log:true
--------------------
This has happened twice so far in 45 minutes, and in both cases, there
is a two minute gap in the submission of the "not idle" actions.


-- 
mvordeme

'last.fm' (http://www.last.fm/user/mvordeme) | scaleo home server 2105 |
squeezecenter 7.3.3 | server power control
20090615.00 | squeezebox boom & duet | rotel rsp-1066 | rotel
rmb-100 | phonar p-5
------------------------------------------------------------------------
mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to