os.path.isfile with *.tar.gz

2007-03-15 Thread Boudreau, Emile
ork. Does anyone have suggestions on how I could get this to work? Thanks in advance for the help, Emile This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or d

Subject line with smtplib.sendmail()

2007-03-20 Thread Boudreau, Emile
al "To" and "Subject" lines so that I know to whom the email was sent and the subject line without opening the email? Thanks in advance for the help. Emile Boudreau This message may contain privileged and/or confidential information. If you have received this e-mail in err

RE: Subject line with smtplib.sendmail()

2007-03-20 Thread Boudreau, Emile
x27;t Work It's just adding the "From" "To" "Subject" in the message itself. I want to have each field at the correct place and then just the msg in the body. Any Help?? Thanks Emile Boudreau -Original Message- From: [EMAIL PROTECTED] [mailto

RE: Subject line with smtplib.sendmail()

2007-03-20 Thread Boudreau, Emile
access to all the variables I have? thanks Emile Boudreau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boudreau, Emile Sent: Tuesday, March 20, 2007 1:51 PM To: python-list@python.org Subject: RE: Subject line with smtplib.sendmail() Thanks for the

2 Command prompt at the same time

2007-03-21 Thread Boudreau, Emile
Hello, I have two batch files and I'm trying to run them in parallel. I haven't been able to find any information on how to make python open 2 command prompt and then make each prompt run one of the batch files. Can anyone point me in the right direction? Thanks, Emil

Two Command prompts in parallels

2007-03-22 Thread Boudreau, Emile
Hello, I have two batch files and I'm trying to run them in parallel. I haven't been able to find any information on how to make python open 2 command prompt and then make each prompt run one of the batch files. Can anyone point me in the right direction? Thanks, Emil

Sending emails to 3 addresses....

2007-03-30 Thread Boudreau, Emile
"From: %s" % FROM, "To: %s" % TO, "Subject: %s" % subject, "", body ), "\r\n") server = smtplib.SMTP(HOST) server.sendmail(FROM, [TO], BODY) server.quit() Emile Boudreau This message may

RE: Sending emails to 3 addresses....

2007-03-30 Thread Boudreau, Emile
Thanks so much I would of never found that out. Problem SOLVED Emile Boudreau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Williams Sent: Friday, March 30, 2007 9:12 AM To: Boudreau, Emile Cc: python-list@python.org Subject: Re: Sending

Problem with filter()

2007-04-03 Thread Boudreau, Emile
'dev.tar.gz': return 1 For some reason I only get 'logs' printed when is_Dev is called. (ie. It's only going through is_dev once) Does anyone see something wrong that I'm not seeing?? Thanks, Emile Boudreau This message may contain privileged and/or co

RE: Problem with filter()

2007-04-03 Thread Boudreau, Emile
now the results of the filter is an empty list and i know it shouldn't be. Emile Boudreau From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boudreau, Emile Sent: Tuesday, April 03, 2007 10:52 AM To: python-list@python.org Subject: Problem with

Extracting a file from a tarball

2007-04-03 Thread Boudreau, Emile
71, in getmember raise KeyError("filename %r not found" % name) KeyError: "filename 'symbols.xml' not found" I know that the tarball contants this file "symbols.xml" but I don't understand why it's not extracting it. Any help will be great

RE: Extracting a file from a tarball

2007-04-03 Thread Boudreau, Emile
Your hint of checking "tar.getnames()" was exatly what I needed. It returns the path to where the file will be extracted (ie. Src/ver/qfw/symbols.xml). After knowing this fact it was quite simple to extract the file. Thanks, problem solved!!! Emile Boudreau x5754 -Original Message

Using/finding ODBC and DBI

2007-04-09 Thread Boudreau, Emile
> '' and jobs.job = fixes.job and fixes.change = 28339 order by change desc" db = odbc.odbc( "UDAP4" ) cursor = db.cursor() cursor.execute( Query ) Emile Boudreau x5754 This message may contain privileged and/or confidential information. If you have recei

Re: Collecting IP range

2006-01-30 Thread Emile van Sebille
eip = struct.unpack('>L',socket.inet_aton(endip))[0] while sip <= eip: yield socket.inet_ntoa(struct.pack('>L',sip)) sip += 1 for ii in iterIPs ('1.2.3.0','1.2.3.127'): ii Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: A simple question string.replace

2006-01-30 Thread Emile van Sebille
es -- data = """1.12.3 2.211.1 4.31.1""" newdata = data.replace("1.1","1.x") but that's probably not what you want. Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: Cryptographically random numbers

2006-03-05 Thread Emile van Sebille
> > Any comments on this? I think it should hold up to a test, it seems to > work alright. Thanks! > If this does what you want, that's good. But someday when you look again and see while(num>max): num=min+s2num(urandom(range)) you'll wonder... Thankfully-py