Re: [python-win32] P3K?

2008-06-23 Thread Dahlstrom, Roger
Well *I* used to line up rocks in to ones and zeros. Then I had a toucan that would interpret them, and chisel the gui on to a stone tablet. I still remember how upset everyone was when we introduced papyrus. ___ python-win32 mailing list python-win32@

Re: [python-win32] P3K?

2008-06-23 Thread Gerdus van Zyl
And of course REAL programmers use butterflies. http://xkcd.com/378/ On Mon, Jun 23, 2008 at 12:54 PM, Dahlstrom, Roger <[EMAIL PROTECTED]> wrote: > Well *I* used to line up rocks in to ones and zeros. Then I had a toucan > that would interpret them, and chisel the gui on to a stone tablet. I s

Re: [python-win32] P3K?

2008-06-23 Thread English, Mark
> -Original Message- ] On Behalf Of Dahlstrom, Roger > Sent: 23 June 2008 11:55 > Cc: [email protected] > Subject: Re: [python-win32] P3K? > > Well *I* used to line up rocks in to ones and zeros. Then I > had a toucan that would interpret them, and chisel the gui on > to a stone t

Re: [python-win32] P3K?

2008-06-23 Thread Gerrat Rickert
+1 for APL integration! ;o) Numpy is nice, but can't touch APL... ...of course, it wasn't a challenge to write an obfuscated one-liner in APL - it was standard practice! Gerrat Rickert -Original Message- From: bob gailer [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 10:40

[python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState = win32serviceutil.QueryServiceStatus('VNC Server')[1] This works in 9

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Tim Golden
Mike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You knew I was going to say that, didn't you?) Example you can modify: http://tgolden.sc.s

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState = win32serviceutil.QueryServiceStatus('VNC Server'

[python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Roger Upole
Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState = win32serviceutil.QueryServic

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Kevin Horn
Also check the permissions on the problem users registry. I would expect that to cause a different error, but it might be worth checking. Kevin Horn On Mon, Jun 23, 2008 at 2:25 PM, Roger Upole <[EMAIL PROTECTED]> wrote: > > Mike Driscoll wrote: > >> Mike Driscoll wrote: >> >>> Hi, >>> >>> In o

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Tim, Mike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You knew I was going to say that, didn't you?) I knew you'd have some idea...you a

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Roger Upole wrote: Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like this: import win32serviceutil serviceState = win32ser

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Michel Claveau
Hi! Can you try to wrap command-line SC? Example of command-line : sc query winvnc Example of wrap: def clwrap(commande, cdir='.'): import os if cdir!='.':os.chdir(cdir) a = os.popen(commande) return a.read() print clwrap('sc query winsvc') @-salu

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Tim Golden
Mike Driscoll wrote: Tim, Mike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You knew I was going to say that, didn't you?) I knew you'd