RE: Need Assistance on this program.

2011-06-02 Thread Prasad, Ramit
Are you writing a command line interpreter (even if a partial one)? If so take a look at : http://docs.python.org/library/cmd.html Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This

Re: Need Assistance on this program.

2011-05-13 Thread Tim Golden
On 13/05/2011 06:22, vijay swaminathan wrote: Hi Tim., Thanks.. This works as I had expected. are there any documentation for the subprocess.call method? I tried going through the python doc but could not narrow down.

Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
Hi All, I'm new bie to python thread programming and would like to assistance on the attached code. In this, I'm calling a thread to invoke a command prompt and would like to print the Thread as alive as long as the command prompt is opened and would like to print Thread is Dead only when the

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

Re: Need Assistance on this program.

2011-05-12 Thread Andrea Crotti
vijay swaminathan swavi...@gmail.com writes: Hi All, I'm new bie to python thread programming and would like to assistance on the attached code. In this, I'm calling a thread to invoke a command prompt and would like to print the Thread as alive as long as the command prompt is opened and

Re: Need Assistance on this program.

2011-05-12 Thread Tim Golden
On 12/05/2011 10:45, vijay swaminathan wrote: I tried using that as well. The problem is, the thread becomes dead as soon as it executes the invocation of command prompt. Can you post the code you're using, please? This should be simple so maybe you've misunderstood something in the

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 Tim Golden
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) subprocess.call([start, C:\\windows\\system32\\cmd.exe], shell = True)

Re: Need Assistance on this program.

2011-05-12 Thread Thomas 'PointedEars' Lahn
vijay swaminathan wrote: I have already done that. But for some reason my response went as a new thread. Attaching the code again. JFYI: Please DO NOT post attachments in a non-binary newsgroup or to a mailing list (are there binary ones at all?) again. TIA. -- PointedEars Bitte keine

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
Hi Tim., Thanks.. This works as I had expected. are there any documentation for the subprocess.call method? I tried going through the python doc but could not narrow down. I just wanted to know how do I pass an arguement after invoking the command prompt? Any thoughts on this pls? On Thu, May