Playing with threads

Ganesh Pal ganesh1pal at gmail.com
Thu Jan 8 03:00:41 CET 2015


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

Regards,
Ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150108/8633376a/attachment.html>


More information about the Python-list mailing list