Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-28 Thread naman jain
; twisted-python-boun...@twistedmatrix.com] *On Behalf Of *naman jain > *Sent:* Tuesday, October 27, 2009 6:36 AM > *To:* Twisted general discussion > *Subject:* Re: [Twisted-Python] Regarding Twisted Matrix > > > > I tried to implement this: > > parent_conn, child_conn

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
m: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of naman jain Sent: Tuesday, October 27, 2009 6:36 AM To: Twisted general discussion Subject: Re: [Twisted-Python] Regarding Twisted Matrix I tried to implement this: parent_conn, child_conn =

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
jain Sent: Tuesday, October 27, 2009 1:45 AM To: twisted-python@twistedmatrix.com Subject: [Twisted-Python] Regarding Twisted Matrix Hi, I have a client server model in twisted, where the server spawns a thread ( basically a test script in python that runs for about 20 mins) I want to track the p

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Reza Lotun
Hi Naman, > I tried to implement this: > > parent_conn, child_conn = Pipe() > > f = defer.Deferred() > f = threads.deferToThread(start_test.main_func, SCRIPT_PATH, > TEMP_OUTPUT_PATH, self.output_name, child_conn) Do you really want to spawn a thread or a process? Since it seems like you're tryin

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread naman jain
I tried to implement this: parent_conn, child_conn = Pipe() f = defer.Deferred() f = threads.deferToThread(start_test.main_func, SCRIPT_PATH, TEMP_OUTPUT_PATH, self.output_name, child_conn) response = parent_conn.recv() print response //prints like: initialization done self.transport.write(respo

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-26 Thread Nathan
On Mon, Oct 26, 2009 at 11:44 PM, naman jain wrote: > Hi, > > I have a client server model in twisted, where the server spawns a thread ( > basically a test script in python that runs for about 20 mins) > I want to track the progress of the thread, and send the progress to the > client back > > So

[Twisted-Python] Regarding Twisted Matrix

2009-10-26 Thread naman jain
Hi, I have a client server model in twisted, where the server spawns a thread ( basically a test script in python that runs for about 20 mins) I want to track the progress of the thread, and send the progress to the client back So, I write something like this in my server: parent_conn, child_con