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 m

Re: Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
r. DoRight "Scott 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

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

Re: Threading HowTo's in Windows platforms

2006-07-01 Thread LittlePython
PROTECTED] > 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 on windows platforms. Hopefully > >authors who don't mind doing

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 instruct

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 -- http://mail.python

Re: Converting binary sid's to a hex string

2006-06-09 Thread LittlePython
cii module to convert the raw > bytes 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 c

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 converti

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 t

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 specif

Re: Using a package like PyInstaller

2006-05-28 Thread LittlePython
OTECTED]> wrote in message news:[EMAIL 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

Re: Using a package like PyInstaller

2006-05-27 Thread LittlePython
have 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 ha

Re: Using a package like PyInstaller

2006-05-27 Thread LittlePython
wrote in message news:[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 >

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: 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 dia

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
> """) > > while not rs.EOF: > for f in rs.Fields: > print f.Name, f.Value > rs.MoveNext() > > hth > Roger > > "LittlePython" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Thank

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 prob

Re: Seaching Active Directory via ADO

2006-02-17 Thread LittlePython
;Page Size") = 1000 objComm.CommandText = strBase & strFilter & strAttrs & strScope set 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:

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\Administra

Re: Seaching Active Directory via ADO

2006-02-16 Thread LittlePython
r', 'Tabl e does not exist.', None, 1240640, -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 > Com

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. -- http://mail

Re: How to cat None

2006-02-15 Thread LittlePython
e case, may be you can try this : > > "\n".join("%s=%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

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 cas

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

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

Re: Newbie

2006-02-14 Thread LittlePython
. 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 &

Re: Python equivilant to msgbox()

2006-02-14 Thread LittlePython
[EMAIL PROTECTED] > 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 compone

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

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? -- htt

Re: Newbie

2006-02-12 Thread LittlePython
st another 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 anot

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, bo

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