[Nut-upsuser] NUT Windows port questions

Frédéric Bohé fredericbohe at eaton.com
Fri Jan 6 08:21:18 UTC 2012


On Thu, 2012-01-05 at 17:40 +0400, Denis Serov wrote:
> Hi Frederic!
> 
> Thank you for your answers...
> 
> >> 1. It seems that it impossible to use long file names with spaces in 
> >> PIPEFN/LOCKFN/NOTIFYCMD/... (like "C:\Program Files (x86)\NUT\sbin
> >> \upssched.exe") or I couldn't find the way (error: cannot find "C:
> >> \Program "). Environment variables are not supported too (it would be 
> >> great to use %ProgramFiles% in the paths).
> >> 
> >> This problem is the reason, why I had to use "C:\NUT\NUT" directory 
> >> for pipe & lock. Moreover, to start "upssched.exe" via NOTIFYCMD, I 
> >> included "C:\Program Files (x86)\NUT\bin" and "C:\Program Files 
> >> (x86)\NUT\sbin" into %PATH% variable.
> 
> > Indeed using name with spaces is not obvious and I have recently added a note this in the doc. This is an example of what you need :
> 
> > PIPEFN "\"C:\\Program Files\\NUT\\upssched.pipe\""
> 
> > Let me know if this solve this point.
> 
> I didn't check PIPEFN, but I have some results for NOTIFYCMD:
> 
> NOTIFYCMD "\"C:\\Program Files (x86)\\NUT\\notify.cmd\""
> 
> Network UPS Tools upsmon 2.6.0-2988:2989M
>    0.000000     UPS: mainups at 192.168.10.2 (slave) (power value 1)
>    0.000000     Using power down flag file C:\killpower.flag
>    0.015600     debug level is '1'
>    0.015600     Trying to connect to UPS [mainups at 192.168.10.2]
>    0.031200     Logged into UPS mainups at 192.168.10.2
>    8.135114     UPS mainups at 192.168.10.2 on battery
> 'C:\Program' is not recognized as an internal or external command, operable program or batch file.


You're right, it only works with data files, not with "commands". I will
try to find a solution for this. In the meantime, as a workaround, you
can use the short 8.3 DOS style file names (issue a "dir /X" to get the
short names).

Regards,
Fred


> 
> With the best wishes,
> Denis
> 

-- 
Team Open Source Eaton - http://powerquality.eaton.com

--------------------------------------------------------------------------



More information about the Nut-upsuser mailing list