alexsilva / supervisor

Supervisor process control system for Windows
http://supervisord.org
Other
118 stars 26 forks source link

Using %here% keyword error #7

Closed haiyuanhe closed 5 years ago

haiyuanhe commented 5 years ago

I config with %here% keyword .

[program:register]
command=%(here)s/../../embedded/bin/python register
directory=%(here)s/../../modules/default
redirect_stderr=true
priority=999
startsecs=2

and print log without "/"

2019-08-14 00:19:21,805 INFO spawnerr: can't find command 'c:onemodulesregister/../../embedded/bin/python'

I except c:\one\modules\register path

Thanks

alexsilva commented 5 years ago

This version of supervisor is specific to windows, so:

Commands must obey the following syntax:

# With single separator, must be enclosed in quotation marks " or '
[program:python]
command='C:\Python27\python.exe' script.py
# With double separator (scaped)
[program:python]
command=C:\\Python27\\python.exe script.py
# Using expansion is necessary quotation marks because in this case it is equivalent to simple separator

[program:python]
command='%(here)s\python.exe' script.py
haiyuanhe commented 5 years ago

thanks