Re: win32service (wxpython) -- i cannot install service
kkt49 wrote: under code service install = ok _svc_name_ = r'moin_service' _svc_display_name_ = r'moin_service' start_cmd = rc:\mmde\moin.exe #info = ['', '', ''] def __init__(self): #self._svc_name = info[0] #self._svc_display_name_ = info[1] #self.start_cmd = info[2] but, i want dynamic _svc_name_ and start_cmd Services aren't dynamic in nature. They are static, are given names (that are used to start, stop, etc.) and get installed into servicemanager on Windows workstation or server. Their behavior could be dynamic, that is you could change what they do by communicating with them via external means. I think you better back up and tell us what you are trying to do at a higher level. Perhaps we can help more. -Larry -- http://mail.python.org/mailman/listinfo/python-list
Re: win32service (wxpython) -- i cannot install service
Larry Bates wrote: kkt49 wrote: under code service install = ok _svc_name_ = r'moin_service' _svc_display_name_ = r'moin_service' start_cmd = rc:\mmde\moin.exe #info = ['', '', ''] def __init__(self): #self._svc_name = info[0] #self._svc_display_name_ = info[1] #self.start_cmd = info[2] but, i want dynamic _svc_name_ and start_cmd Services aren't dynamic in nature. They are static, are given names (that are used to start, stop, etc.) and get installed into servicemanager on Windows workstation or server. Their behavior could be dynamic, that is you could change what they do by communicating with them via external means. I think you better back up and tell us what you are trying to do at a higher level. Perhaps we can help more. -Larry Sorry, after I clicked send I think I understand what you want. You can't make a .EXE program run as a service by starting it as a service. If thats not what you are trying to do, give us some more high-level info about what it is that you are trying to accomplish. -Larry -- http://mail.python.org/mailman/listinfo/python-list
Re: win32service (wxpython) -- i cannot install service
I believe you misunderstand services. They don't have user interfaces (UIs) like other programs. They run without any UI as background processes that are in basically in an infinite loop but with a way to break out of the loop (stop service). If you wish to have a background service that has some sort of control UI, you need to write it as two parts. The service and a UI that communicates with the service either through a shared file, pipe, or socket server/ client interface. You should pick up a copy of Python Programming on Win32 which is an excellent reference book for writing Windows services. -Larry Bates -- http://mail.python.org/mailman/listinfo/python-list
Re: win32service (wxpython) -- i cannot install service
under code service install = ok _svc_name_ = r'moin_service' _svc_display_name_ = r'moin_service' start_cmd = rc:\mmde\moin.exe #info = ['', '', ''] def __init__(self): #self._svc_name = info[0] #self._svc_display_name_ = info[1] #self.start_cmd = info[2] but, i want dynamic _svc_name_ and start_cmd Larry Bates 작성: I believe you misunderstand services. They don't have user interfaces (UIs) like other programs. They run without any UI as background processes that are in basically in an infinite loop but with a way to break out of the loop (stop service). If you wish to have a background service that has some sort of control UI, you need to write it as two parts. The service and a UI that communicates with the service either through a shared file, pipe, or socket server/ client interface. You should pick up a copy of Python Programming on Win32 which is an excellent reference book for writing Windows services. -Larry Bates -- http://mail.python.org/mailman/listinfo/python-list