Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83503

Re: Playing with threads

References <CACT3xuUzuMH1CF3AsakdGMwa3U3BX3N+nA1ZVy4NhVmnA9-6gw@mail.gmail.com> <CACT3xuWmGF7OpoTKmEHEwzzsZNPXECn-rDKVnDtUo8-p1B1fww@mail.gmail.com> <m8l0br$nj0$1@ger.gmane.org>
Date 2015-01-10 20:47 +0530
Subject Re: Playing with threads
From Ganesh Pal <ganesh1pal@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.17566.1420903073.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Thanks I read subprocess module this answered most of my question ,thanks a
lot for the  replies

On Thu, Jan 8, 2015 at 9:46 AM, Terry Reedy <tjreedy@udel.edu> wrote:

> On 1/7/2015 9:00 PM, Ganesh Pal wrote:
>
>> Hi friends,
>>
>> I'm trying to use threads  to achieve the below work flow
>>
>> 1. Start a process , while its running grep for a string 1
>> 2. Apply the string 1 to the command in step 1 and exit step 2
>> 3. Monitor the stdout of step1 and print success if the is pattern  found
>>
>> Questions:
>>
>> 1. Can the above be achieved without threads ? I prefer keep ing code
>> simple  .threads can become confusion when this workflow grows larger
>>
>
> I do not understand the work flow either.  What I do know is that Idle
> Edit -> Find in Files is implemented in idlelib/grep.py and that the
> non-gui code could be copied and adapted to other purposes.
>
> --
> Terry Jan Reedy
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Playing with threads Ganesh Pal <ganesh1pal@gmail.com> - 2015-01-10 20:47 +0530

csiph-web