Creating a session in windows to auth to remote machines

2009-04-04 Thread ericwoodworth
Hi, I'm trying to auth to remote machines so I can plunder WMI to get logs and settings and the like. My script works for most of my machines because they're all in the same domain and I run the script as somebody who has enough access to get at this stuff but for machines off the domain I'm

Re: Creating a session in windows to auth to remote machines

2009-04-04 Thread ericwoodworth
On Apr 4, 6:39 pm, ericwoodwo...@gmail.com wrote: > Hi, >      I'm trying to auth to remote machines so I can plunder WMI to get > logs and settings and the like.  My script works for most of my > machines because they're all in the same domain and I run the script > as somebody who has enough acce

Killing threads

2009-04-04 Thread ericwoodworth
Hi, I'm new to python and even newer to threading and it seems as though I'm missing something fundamental about threads. Basically I have a program that looks like this: class ThreadOne(threading.Thread): while 1: do stuff class ThreadTwo(threading.Thread): while 1:

Re: Killing threads

2009-04-04 Thread ericwoodworth
On Apr 5, 12:22 am, a...@pythoncraft.com (Aahz) wrote: > In article <4b52f7d7-81d5-4141-9385-ee8cfb90a...@l1g2000yqk.googlegroups.com>, > >   wrote: > > >I'm using queues to talk between these threads so I could certainly > >put some kind of message on the queue that causes the threads to > >commit

Re: Creating a session in windows to auth to remote machines

2009-04-05 Thread ericwoodworth
On Apr 5, 2:11 am, Tim Golden wrote: > ericwoodwo...@gmail.com wrote: > > Hi, > >      I'm trying to auth to remote machines so I can plunder WMI to get > > logs and settings and the like.  My script works for most of my > > machines because they're all in the same domain and I run the script > >

Re: Creating a session in windows to auth to remote machines

2009-04-05 Thread ericwoodworth
On Apr 5, 9:09 am, ericwoodwo...@gmail.com wrote: > On Apr 5, 2:11 am, Tim Golden wrote: > > > > > > > ericwoodwo...@gmail.com wrote: > > > Hi, > > >      I'm trying to auth to remote machines so I can plunder WMI to get > > > logs and settings and the like.  My script works for most of my > > > m

Re: Killing threads

2009-04-05 Thread ericwoodworth
On Apr 5, 11:07 pm, Dennis Lee Bieber wrote: > On Sun, 5 Apr 2009 17:27:15 -0700 (PDT), imageguy > declaimed the following in > gmane.comp.python.general: > > > In threading.Event python 2.5 docs say; > > "This is one of the simplest mechanisms for communication between > > threads: one thread si

Re: Killing threads

2009-04-06 Thread ericwoodworth
On Apr 6, 3:45 am, bieff...@gmail.com wrote: > On 6 Apr, 05:25, ericwoodwo...@gmail.com wrote: > > > > > On Apr 5, 11:07 pm, Dennis Lee Bieber wrote: > > > > On Sun, 5 Apr 2009 17:27:15 -0700 (PDT), imageguy > > > declaimed the following in > > > gmane.comp.python.general: > > > > > In threading.

Python, MS SQL, and batch inserts

2009-04-21 Thread ericwoodworth
Hi, I have a python script I'm writing that grabs some data from a com object, does a little formatting, and then inserts that data into a MS SQL 2003 DB. Because I'm using COM objects I'm importing win32com.client. That also allows me to use ADODB.connection and ADODB.command objects for wo

Re: Python, MS SQL, and batch inserts

2009-04-21 Thread ericwoodworth
On Apr 21, 2:15 pm, Philip Semanchuk wrote: > On Apr 21, 2009, at 2:02 PM, ericwoodwo...@gmail.com wrote: > > > > > Hi, > >     I have a python script I'm writing that grabs some data from a > > com object, does a little formatting, and then inserts that data into > > a MS SQL 2003 DB.  Because I'

Re: Python, MS SQL, and batch inserts

2009-04-21 Thread ericwoodworth
On Apr 21, 3:36 pm, Scott David Daniels wrote: > Philip Semanchuk wrote: > > ... If you're doing a mass insert to populate a blank table it also often > > helps to postpone index creation until after the table is populated > > I forget the name of the SQL Server bulk loader, but for large load

Re: Python, MS SQL, and batch inserts

2009-04-21 Thread ericwoodworth
On Apr 21, 4:01 pm, ericwoodwo...@gmail.com wrote: > On Apr 21, 3:36 pm, Scott David Daniels wrote: > > > Philip Semanchuk wrote: > > > ... If you're doing a mass insert to populate a blank table it also often > > > helps to postpone index creation until after the table is populated > > > I fo