Re: [Twisted-Python] Launching Twisted client using Process call

2009-11-24 Thread naman jain
Please could I get some help on this issue, if any one has some ideas. Thanks Naman On Tue, Nov 17, 2009 at 3:30 PM, David Ripton wrote: > On 2009.11.17 07:07:50 +0100, naman jain wrote: > > I try to launch it as a Process: > > foo = Process( target=twisted_client.ma

Re: [Twisted-Python] Launching Twisted client using Process call

2009-11-20 Thread naman jain
t 3:30 PM, David Ripton wrote: > On 2009.11.17 07:07:50 +0100, naman jain wrote: > > I try to launch it as a Process: > > foo = Process( target=twisted_client.main, args=(q,uid,)) > > foo.start() > > foo.join() > > status = q.get() > > > Lau

Re: [Twisted-Python] Launching Twisted client using Process call

2009-11-20 Thread naman jain
and update repo def dispatch_test_worker(): Regards Naman On Tue, Nov 17, 2009 at 3:30 PM, David Ripton wrote: > On 2009.11.17 07:07:50 +0100, naman jain wrote: > > I try to launch it as a Process: > > foo = Process( target=twisted_client.main, args=(q,uid,))

[Twisted-Python] Launching Twisted client using Process call

2009-11-16 Thread naman jain
Hi , I have a twisted client server model running. My requirement is to launch my client from another program based on some event received by the master program. I try to launch it as a Process: foo = Process( target=twisted_client.main, args=(q,uid,)) foo.start() foo.join() status = q.ge

Re: [Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-11-06 Thread naman jain
Thanks. that does the job for me very well. On Thu, Nov 5, 2009 at 7:18 PM, wrote: > On 01:20 pm, naman...@gmail.com wrote: > >I ll try to rephrase it better: > > > >I simply want the print statement to appear in both the log file and > >the > >console. > >print("goes in both") -> the log also g

[Twisted-Python] Unpedictable behaviour of transport.write call: Problem with return the control to reactor

2009-11-03 Thread naman jain
Hi, I was trying this out: Server code: def dataReceived(self, data): if (args["cmd"] == "CHECK_IN"): foo = subprocess.Popen('python master.py',shell = True) *# this ACK notifies the client to close the connection* self.transport.write( self.create_message("CHECK_IN"

Re: [Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-11-03 Thread naman jain
l Regards Naman On Fri, Oct 30, 2009 at 9:25 PM, David Bolen wrote: > naman jain writes: > > > I wanted to log in a file and keep the console also going with it. > > I can read this as either: > > * Keep file logs and stdout/console completely separate, or > * File g

[Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-10-29 Thread naman jain
Hi, I wanted to log in a file and keep the console also going with it. I am using log.startLogging(open(logname, 'w')) whatever documentation I could find about this API, it suggested me to pass setStdout=False(in order to keep stdout away from putting into log) somewhere in the startlogging fun

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-28 Thread naman jain
orks correctly – you might want to refactor to use > twisted.protocols.basic.LineReceiver instead. > > > > Kind regards, > > > > Valeriy Pogrebitskiy > > Email: vpogr...@iname.com > > > > > > -Original Message- > *From:* twisted-python-boun...@twistedmatrix.com [mailto: >

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread naman jain
thread waiting for reading.] Any ideas ? How is such stuff done in twisted servers?? Naman On Tue, Oct 27, 2009 at 7:03 AM, Nathan wrote: > On Mon, Oct 26, 2009 at 11:44 PM, naman jain wrote: > > Hi, > > > > I have a client server model in twisted, where the s

[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