Check a windows service

Gabriel Genellina gagsl-py at yahoo.com.ar
Tue Jan 16 20:29:47 EST 2007


At Tuesday 16/1/2007 19:19, awel wrote:

>Sorry, but could you give me an example with a real service 'cause I've
>tried this script but nothings happened, no error, nothings ; even if I
>launch it in cmd prompt.

You have to call the EnumServices function if you want some useful output.
Copy&paste the code in a new file, add these 2 lines at the end, and 
save the file with a .py extension:

if __name__=='__main__':
     EnumServices()

Then execute it with: python your_file_name.py
See 
http://diveintopython.org/getting_to_know_python/testing_modules.html 
to understand what's that; and read the whole book, it's a good 
tutorial if you already know another language.


-- 
Gabriel Genellina
Softlab SRL 


	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Python-list mailing list