Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 8:21 am, "Martin P. Hellwig" wrote: > On 02/07/10 19:02, T wrote: > > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.exe to create a reverse SSH tunnel.  Righ

Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 4:10 am, Tim Golden wrote: > On 10/02/2010 22:55, T wrote: > > > Great suggestions once again - I did verify that it was at least > > running the plink.exe binary when under LocalSystem by having the > > service run "plink.exe>  C:\plinkoutput.txt" - this worked fine.  And, > > as I men

Re: Executing Commands From Windows Service

2010-02-11 Thread Martin P. Hellwig
On 02/07/10 19:02, T wrote: I have a script, which runs as a Windows service under the LocalSystem account, that I wish to have execute some commands. Specifically, the program will call plink.exe to create a reverse SSH tunnel. Right now I'm using subprocess.Popen to do so. When I run it inte

Re: Executing Commands From Windows Service

2010-02-11 Thread Tim Golden
On 10/02/2010 22:55, T wrote: Great suggestions once again - I did verify that it was at least running the plink.exe binary when under LocalSystem by having the service run "plink.exe> C:\plinkoutput.txt" - this worked fine. And, as I mentioned, it's now working just fine when running under a r

Re: Executing Commands From Windows Service

2010-02-10 Thread T
On Feb 9, 4:25 pm, David Bolen wrote: > David Bolen writes: > > Not from my past experience - the system account (LocalSystem for > > services) can be surprising, in that it's pretty much unlimited access > > to all local resources, but severely limited in a handful of cases, > > one of which is

Re: Executing Commands From Windows Service

2010-02-09 Thread David Bolen
David Bolen writes: > Not from my past experience - the system account (LocalSystem for > services) can be surprising, in that it's pretty much unlimited access > to all local resources, but severely limited in a handful of cases, > one of which is any attempt to access the network. I can't reca

Re: Executing Commands From Windows Service

2010-02-09 Thread David Bolen
T writes: > The more testing I do, I think you may be right..I was able to get it > to work under a local admin account, and it worked under debug mode > (which would also have been running as this user). I'm a bit > surprised though - I was under the assumption that LocalSystem had > rights to

Re: Executing Commands From Windows Service

2010-02-09 Thread Sean DiZazzo
On Feb 9, 6:52 am, T wrote: > On Feb 8, 2:25 pm, David Bolen wrote: > > > > > T writes: > > > I have a script, which runs as a Windows service under the LocalSystem > > > account, that I wish to have execute some commands.  Specifically, the > > > program will call plink.exe to create a reverse

Re: Executing Commands From Windows Service

2010-02-09 Thread David Bolen
T writes: > I have a script, which runs as a Windows service under the LocalSystem > account, that I wish to have execute some commands. Specifically, the > program will call plink.exe to create a reverse SSH tunnel. Right now > I'm using subprocess.Popen to do so. When I run it interactively

Re: Executing Commands From Windows Service

2010-02-09 Thread T
On Feb 8, 2:25 pm, David Bolen wrote: > T writes: > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.exe to create a reverse SSH tunnel.  Right now > > I'm using subproce

Re: Executing Commands From Windows Service

2010-02-08 Thread T
On Feb 8, 1:28 am, Sean DiZazzo wrote: > On Feb 7, 4:57 pm, T wrote: > > > Thanks for the suggestions -  I think my next step is to try running > > it under an admin user account, as you guys both mentioned.  Alf - > > you're absolutely right, Microsoft has srvany.exe, which allows you to > > run

Re: Executing Commands From Windows Service

2010-02-08 Thread Sean DiZazzo
> > It's working fine when I run it via " 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 servic

Re: Executing Commands From Windows Service

2010-02-08 Thread T
Thanks for the suggestions - I think my next step is to try running it under an admin user account, as you guys both mentioned. Alf - you're absolutely right, Microsoft has srvany.exe, which allows you to run any EXE as a Windows service. I've done this in the past, but it's more of a "hack"..so

Re: Executing Commands From Windows Service

2010-02-07 Thread Sean DiZazzo
On Feb 7, 4:57 pm, T wrote: > Thanks for the suggestions -  I think my next step is to try running > it under an admin user account, as you guys both mentioned.  Alf - > you're absolutely right, Microsoft has srvany.exe, which allows you to > run any EXE as a Windows service.  I've done this in th

Re: Executing Commands From Windows Service

2010-02-07 Thread Alf P. Steinbach
* T: On Feb 7, 4:43 pm, Sean DiZazzo wrote: On Feb 7, 11:02 am, T wrote: I have a script, which runs as a Windows service under the LocalSystem account, that I wish to have execute some commands. Specifically, the program will call plink.exe to create a reverse SSH tunnel. Right now I'm us

Re: Executing Commands From Windows Service

2010-02-07 Thread T
On Feb 7, 4:43 pm, Sean DiZazzo wrote: > On Feb 7, 11:02 am, T wrote: > > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.exe to create a reverse SSH tunnel.  Right now

Re: Executing Commands From Windows Service

2010-02-07 Thread Sean DiZazzo
On Feb 7, 11:02 am, T wrote: > I have a script, which runs as a Windows service under the LocalSystem > account, that I wish to have execute some commands.  Specifically, the > program will call plink.exe to create a reverse SSH tunnel.  Right now > I'm using subprocess.Popen to do so.  When I run

Re: Executing Commands From Windows Service

2010-02-07 Thread Stephen Hansen
On Sun, Feb 7, 2010 at 11:02 AM, T wrote: > I have a script, which runs as a Windows service under the LocalSystem > account, that I wish to have execute some commands. Specifically, the > program will call plink.exe to create a reverse SSH tunnel. Right now > I'm using subprocess.Popen to do s