Need some assistance on Regular expression in python

2012-04-18 Thread vijay swaminathan
Hi Experts, I'm a new bie to python and need some assistance in the usage of regular expression. I have a string something like this: New builds available Version: 20120418-abcdef-1 (based on SDK 0.0.0.1) from the above string I want to extract the following text using regular expression

A better way to read Image from a server and start download / load

2012-04-17 Thread vijay swaminathan
have html tags. so removing the tags to pick only image name if c != filename: list_of_files.append(c) else: Image_Upgrade() flag = True if flag==False: Image_Download() /code Thanks, Vijay Swaminathan -- http://mail.python.org/mailman

Sending email in python

2011-07-04 Thread vijay swaminathan
successfully' s.quit() except: print 'Email with attachment could not be sent !!' -- Vijay Swaminathan -- http://mail.python.org/mailman/listinfo/python-list

Problem in using subprocess module and communicate()

2011-05-21 Thread vijay swaminathan
, creationflags=subprocess.CREATE_NEW_CONSOLE) retcode.wait() retcode.communicate('scripts_to_execute.bat') t = threading.Thread(target = runMonitor, args = (cmd.exe,)) t.start() while t.is_alive(): print 'Thread is still alive' time.sleep(0.5) else: print 'Thread is dead' Vijay

Assistance in understanding the sub-Process module

2011-05-13 Thread vijay swaminathan
, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified I would assume that a list is accepted as part of the args and first being the program (cmd.exe) and the rest being the arguments... please correct me If i misunderstood. Thanks, -- Vijay Swaminathan

Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
. Also can somebody point me to a good tutorial on understanding python thread programming since I want to get my understanding on the concept of thread better. I googled a few but quite confusing. -- Vijay Swaminathan Thread_Example1.py Description: Binary data -- http://mail.python.org/mailman

Re: NewBie Doubt in Python Thread Programming

2011-05-12 Thread vijay swaminathan
Hi Chris, I tried using os.system as well but it did not even open up the command prompt. Can you please share the code that worked for you.. just wondering if I'm missing something very basic. Regards, -Vijay Swaminathan., On Thu, May 12, 2011 at 1:38 PM, Chris Angelico ros...@gmail.com wrote

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
I tried using that as well. The problem is, the thread becomes dead as soon as it executes the invocation of command prompt. I want the thread to be alive till I go and manually close the command prompt. -Vijay Swaminathan. On Thu, May 12, 2011 at 2:46 PM, Andrea Crotti andrea.crott

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
Hi Tim, I have already done that. But for some reason my response went as a new thread. Attaching the code again. On Thu, May 12, 2011 at 3:38 PM, Tim Golden m...@timgolden.me.uk wrote: On 12/05/2011 10:45, vijay swaminathan wrote: I tried using that as well. The problem is, the thread

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
12, 2011 at 4:08 PM, Tim Golden m...@timgolden.me.uk wrote: On 12/05/2011 11:29, vijay swaminathan wrote: ... snippet from code ... print 'Invoking Command Promptt..' #subprocess.call([start, /DC:\\PerfLocal_PAL, scripts_to_execute.bat], shell=True

NewBie Doubt in Python Thread Programming

2011-05-11 Thread vijay swaminathan
active or dead? Please help me in understanding .. -- Vijay Swaminathan -- http://mail.python.org/mailman/listinfo/python-list

Re: NewBie Doubt in Python Thread Programming

2011-05-11 Thread vijay swaminathan
for this to be the case! On Wed, May 11, 2011 at 6:38 PM, vijay swaminathan swavi...@gmail.com wrote: so If i understand correctly, once the run method of the thread is executed, the thread is no more alive. Once run() finishes executing, the thread dies. Actually, I'm trying to invoke a command

Re: NewBie Doubt in Python Thread Programming

2011-05-11 Thread vijay swaminathan
main loop), so this is not a big deal. The signals are: - finished - started - terminated It is possible to block the thread, make it sleep, check whether the thread is running, and few others. -- http://mail.python.org/mailman/listinfo/python-list -- Vijay Swaminathan -- http