Executing Commands From Windows Service

Sean DiZazzo half.italian at gmail.com
Sun Feb 7 17:02:37 EST 2010


>
> It's working fine when I run it via "<servicename> debug" - that's how
> I was testing before.  It's when I start the service that it fails -
> and you can see that, when you run it with debug, plink.exe runs under
> my username.  When I run it as a service, it runs under System...

You can have the service run as any user under the service
properties.  Perhaps set the service to run under your username?

There may be some environment variables set in your session that
aren't in the one its running as.  So maybe check there as well.

Off to drink beer.  Good luck.



More information about the Python-list mailing list