Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'filename:fname piece:py': 0.04; 'executes': 0.09; 'invocation': 0.09; 'received:mail- bw0-f46.google.com': 0.09; 'subprocess': 0.09; 'tim,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'received:209.85.214.46': 0.16; 'thread.': 0.16; 'threading': 0.16; 'using,': 0.16; 'please?': 0.19; 'command': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'maybe': 0.21; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'thu,': 0.22; 'url:mailman': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.28; 'problem': 0.29; 'cc:addr:python.org': 0.31; 'attaching': 0.31; 'tjg': 0.31; 'done': 0.32; 'url:listinfo': 0.33; 'using': 0.34; 'post': 0.34; 'response': 0.36; 'some': 0.37; 'should': 0.37; 'received:209.85': 0.37; 'url:python': 0.37; 'thread': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'url:org': 0.38; 'tim': 0.39; 'received:209.85.214': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'simple': 0.60; '2011': 0.62; 'golden': 0.68; 'to:addr:mail': 0.68; 'soon': 0.76; 'subject:this': 0.79; 'dead': 0.80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jiImWMAqZI/aadHFcyPzbsQRnwVQ11tYF7Op9ULhNV0=; b=tZgJSsrniNcq63hej4s54NdhECuhtL/Cs6srGULKvgBswSakDC/wPU6SquQpv+e2vr AF+HUsJveMKxII7mYb6HKjaSizBxhIlP7Qzk83JIqDNYNpIhs8uqoyQrFy7TzXYVVCRB 5s2hq+9JItHy2NUvcsBCs8hCb3NfS72zjkUCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DMWo8ncZV+M0khe0aiDoYbu6PD4DBXKSn3RZR8Sc/a0d9LFJcqUwDoI/hMCnJa7Twa w6zgv6GMQmcBkvltYK53ryYQ8rPsVpFLrw+V1aueCHAg5vE7/HG0JCQ+VU0Oj3TEEWFH MPPDlpwX07Msm6IYfIDeJkf3iZoD0U59zheEQ= MIME-Version: 1.0 In-Reply-To: <4DCBB18B.5050309@timgolden.me.uk> References: <4DCBB18B.5050309@timgolden.me.uk> Date: Thu, 12 May 2011 15:59:51 +0530 Subject: Re: Need Assistance on this program. From: vijay swaminathan To: Tim Golden Content-Type: multipart/mixed; boundary=00032555450e55dc5904a311ab20 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 84 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305196192 news.xs4all.nl 32470 [::ffff:82.94.164.166]:37703 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5224 --00032555450e55dc5904a311ab20 Content-Type: multipart/alternative; boundary=00032555450e55dc4904a311ab1e --00032555450e55dc4904a311ab1e Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > 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 threading / subprocess mix. > > TJG > -- > http://mail.python.org/mailman/listinfo/python-list > -- Vijay Swaminathan --00032555450e55dc4904a311ab1e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Tim,
=A0
I have already done that. But for some reason my response went as a ne= w thread. Attaching the code again.
On Thu, May 12, 2011 at 3:38 PM, Tim Golden <mail@timgolden.me= .uk> wrote:
On 12/05/2011 10:45, vijay swaminathan wrote:

I tried using that as well.<= br>The problem is, the thread becomes dead as soon as it executes the
in= vocation of command prompt.

Can you post the code you're using, please?
<= br>This should be simple so maybe you've misunderstood
something in = the threading / subprocess mix.

TJG
-- http://mail.python.org/mailman/listinfo/python-list



--
Vijay Swaminathan
--00032555450e55dc4904a311ab1e-- --00032555450e55dc5904a311ab20 Content-Type: application/octet-stream; name="Thread_Example1.py" Content-Disposition: attachment; filename="Thread_Example1.py" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gnlk3o130 JycnDQpDcmVhdGVkIG9uIE1heSAxMSwgMjAxMQ0KDQpAYXV0aG9yOiB2aXN3YW1pbg0KJycnDQoN Cg0KZnJvbSB0aHJlYWRpbmcgaW1wb3J0ICBUaHJlYWQNCg0KaW1wb3J0IHN1YnByb2Nlc3MNCmlt cG9ydCB0aW1lDQppbXBvcnQgb3MNCg0KDQoNCmNsYXNzIE15VGhyZWFkKFRocmVhZCk6DQogICAg ZGVmIF9faW5pdF9fKHNlbGYsIHBhcmVudCA9IE5vbmUpOg0KICAgICAgICBUaHJlYWQuX19pbml0 X18oc2VsZikNCiAgICAgICAgDQogICAgZGVmIHJ1bihzZWxmKToNCiAgICAgICAgcHJpbnQgJ0lu dm9raW5nIENvbW1hbmQgUHJvbXB0dC4uLi4uLi4uLi4uLi4uJw0KICAgICAgICAjc3VicHJvY2Vz cy5jYWxsKFsic3RhcnQiLCAiL0RDOlxcUGVyZkxvY2FsX1BBTCIsICJzY3JpcHRzX3RvX2V4ZWN1 dGUuYmF0Il0sIHNoZWxsPVRydWUpD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