Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
I am looking for some good beginner how-to links and maybe some simple example scripts that perform threading on windows platforms. Hopefully authors who don't mind doing a little spoon feeding would be great as I am a baby python who is very green with threading.. Thx --

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-01 Thread LittlePython
Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports) and minize it till I am done. When I close putty authpf losses the ssh session heartbeat and will then

Re: Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
Jul 2006 16:36:02 GMT, LittlePython [EMAIL PROTECTED] wrote: I am looking for some good beginner how-to links and maybe some simple example scripts that perform threading on windows platforms. Hopefully authors who don't mind doing a little spoon feeding would be great as I am a baby python who

Re: Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
Thx Paul Rubin http://[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython [EMAIL PROTECTED] writes: I am looking for some good beginner how-to links and maybe some simple example scripts that perform threading on windows platforms. Hopefully authors who don't mind doing

Re: Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
David Daniels [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jean-Paul Calderone wrote: On Sat, 01 Jul 2006 16:36:02 GMT, LittlePython [EMAIL PROTECTED] wrote: I am looking for some good beginner how-to links and maybe some simple example scripts that perform threading

Re: I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

2006-07-01 Thread LittlePython
thx, Ravi Teja [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports

Re: Converting binary sid's to a hex string

2006-06-09 Thread LittlePython
of the sid to hex. binascii.b2a_hex(buffer(MySid)) Roger LittlePython [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to create a hexstring of a NT4 user account sid which I can in turn use to query an exchange 55 database. I believe I need to convert a binary sid

Converting binary sid's to a hex string

2006-06-07 Thread LittlePython
I am trying to create a hexstring of a NT4 user account sid which I can in turn use to query an exchange 55 database. I believe I need to convert a binary sid to a hex string. ADsSID com object will do this for me however it is a little slow. Can anybody point me in the right direction to

Try/Except for ADSI GetObject

2006-05-30 Thread LittlePython
I am a little confused on why I can not detect an object that does not exist with a try and except. If I understand ADSI correctly from what I have read you do not create these objects but rather get them. They already exist. I believe if I do the equivalent in VB I would generate an error when I

Re: Using a package like PyInstaller

2006-05-28 Thread LittlePython
PROTECTED] LittlePython wrote: That is very close to what I have being doing, however I was unable to enclose a bmp or another file for that matter in the exe. I used both DATA and BINARY key words with no luck. I checked what was in the package and there were there. I guess for some reason

Re: Using a package like PyInstaller

2006-05-28 Thread LittlePython
Thx for the tip ... I'll give it a go James Stroud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: Im 99.999% confident that this will not happen from the .exe file generated by pyinstaller (unless you specify--see link above). Well I guess that's about

Using a package like PyInstaller

2006-05-27 Thread LittlePython
Is it possible when using packages like PyInstaller to create an .exe for distribution that parts of the package can bleed out and be left on a system when the .exe is executed? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Using a package like PyInstaller

2006-05-27 Thread LittlePython
:[EMAIL PROTECTED] LittlePython wrote: Is it possible when using packages like PyInstaller to create an .exe for distribution that parts of the package can bleed out and be left on a system when the .exe is executed? Thx Look at innosetup. -- James Stroud UCLA-DOE Institute

Re: Using a package like PyInstaller

2006-05-27 Thread LittlePython
been using. Thx James Stroud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: Thx for the tip. I am referring more to the use of PyInstaller or py2exe. Packages that create exe files that basically have your py script and a small py interpreter all rolled up

Re: Seaching Active Directory via ADO

2006-02-18 Thread LittlePython
With help I have been able to put together a little example. It illustrates several different ways.. import win32com.client c = win32com.client.Dispatch(ADODB.Connection) c.Open(Provider=ADSDSOObject) ##Check if connected to AD if bool(c.state): print Connected to AD ## This uses sql dialect

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
objRS = objComm.Execute objRS.MoveFirst while Not objRS.EOF Wscript.Echo objRS.Fields(0).Value objRS.MoveNext wend LittlePython [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am have trouble finding a simple working example of using ADO to search Active Directory. I am

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
Thanks but I was looking more for ADO com object than ADSI or ldap. For some strange reason it is very hard to locate any working scripts that use ADO to connect and search AD. Is there an issue with ADO and python when connecting to AD? I have try to build one myself with no luck. I think my

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
) c.Open(Provider=ADSDSOObject) rs,rc=c.Execute( SELECT adspath, title, name From 'LDAP://DC=yourdomain, DC=COM' where objectClass='user' and name='Roger*' ) while not rs.EOF: for f in rs.Fields: print f.Name, f.Value rs.MoveNext() hth Roger LittlePython

Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
I am have trouble finding a simple working example of using ADO to search Active Directory. I am hoping someone could point me to a generic working script that connects to AD and pulls up a recordset to help me get started into the right direction in learning ADO, ADSI on Python. --

Re: Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
, -2147217865), None) C:\Documents and Settings\Administrator\Desktop\pytest Roger Upole [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You could also accomplish the same thing using the Command object, but this way is usually more concise for plain Sql. Roger LittlePython

Re: Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
Never mind , I know what's wrong ... need to use the right account. It works great and is a great example .. thx LittlePython [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you know what this may mean? C:\Documents and Settings\Administrator\Desktop\pytestADOSeach.py Traceback

Re: How to cat None

2006-02-15 Thread LittlePython
=%s % x for x in user1.iteritems()) Note that you cannot control the ordering of the keys when iterating a dict which may or may not be a concern for you. LittlePython wrote: I found out the hard way that I can not cat None. I get an error. Is there a simple way to cat None without doing

Re: Python equivilant to msgbox()

2006-02-14 Thread LittlePython
] LittlePython wrote: That is exactly what I was look for .. thx Surprised to hear that. As VisualBasic programmer I would expect you to have experience with ActiveX on Windows, where the best way to go with Python is to reuse all the ActiveX components and their known user interfaces (i.e. constants

Re: Newbie

2006-02-14 Thread LittlePython
it. Python just feels right and fits me better. ... Well what do I know ... you make you pick and take your chances. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: I am very new to python. I have been studying it for only a month or so. I have been using vbscript

Re: Python equivilant to msgbox()

2006-02-14 Thread LittlePython
I am glad you did remind me of WScript.Shell ... I have to keep in mind that most if not all of what I have been using in VBS is avail to me. Thx Claudio Grondi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: I am no VB programmer just dabble in vbscripting abit

Re: Newbie

2006-02-14 Thread LittlePython
I have no idea what top-posting or bottom-posting is? Felipe Almeida Lessa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Em Qua, 2006-02-15 às 00:30 +, LittlePython escreveu: I really do not wish to limit myself to MS. My bread and butter is MS but I am a BSD fan at heart. I

How to cat None

2006-02-14 Thread LittlePython
I found out the hard way that I can not cat None. I get an error. Is there a simple way to cat None without doing some kind of equation ( if this then that). Is there a isNone() somewhere. I am not too sure I know what None really means. I include an example to show what I am talking about in

Newbie

2006-02-12 Thread LittlePython
Is this a good place to post python questions from newbie's, or would you suggest another board? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie

2006-02-12 Thread LittlePython
Bruno Desthuilliers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython a écrit : Is this a good place to post python questions from newbie's, or would you suggest another board? Well, depends on how newbie you are, both to Python and to programming, but yes

Re: Newbie

2006-02-12 Thread LittlePython
member of The Ministry of STUPID Questions Bruno Desthuilliers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython a écrit : Is this a good place to post python questions from newbie's, or would you suggest another board? Well, depends on how newbie you are, both to Python

Python equivilant to msgbox()

2006-02-12 Thread LittlePython
Is there an equivalent to a msgbox() or wscript.echo (via wcsript) . I would like to call this instead of print (to the screen) . I would like to write a simple script that is not an event drive gui but calls input boxes, message boxes, or maybe even a file open browser box as well? --

Re: Python equivilant to msgbox()

2006-02-12 Thread LittlePython
That is exactly what I was look for .. thx Kent Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: Is there an equivalent to a msgbox() or wscript.echo (via wcsript) . I would like to call this instead of print (to the screen) . I would like to write