On 29 Aug 2005 17:57:34 -0700, rh0dium <[EMAIL PROTECTED]> wrote:
>So here's how I solved this.. It's seems crude - but hey it works.
>select not needed..
>
>def runCmd( self, cmd, timeout=None ):
>self.logger.debug("Initializing function %s - %s" %
>(sys._getframe().f_code.co_name,cmd
So here's how I solved this.. It's seems crude - but hey it works.
select not needed..
def runCmd( self, cmd, timeout=None ):
self.logger.debug("Initializing function %s - %s" %
(sys._getframe().f_code.co_name,cmd) )
command = cmd + "\n"
child = popen2.Popen3(command)
Paul Rubin wrote:
> "rh0dium" <[EMAIL PROTECTED]> writes:
> > Thanks much - Alternatively if anyone else has a better way to do what
> > I am trying to get done always looking for better ways. I still want
> > this to work though..
>
> You don't have to use select, since you can use timeouts with
"rh0dium" <[EMAIL PROTECTED]> writes:
> Thanks much - Alternatively if anyone else has a better way to do what
> I am trying to get done always looking for better ways. I still want
> this to work though..
You don't have to use select, since you can use timeouts with normal
socket i/o. So you co
Hi all,
Another newbie question. So you can't use signals on threads but you
can use select. The reason I want to do this in the first place it I
need a timeout. Fundamentally I want to run a command on another
machine, but I need a timeout. I have to do this to a LOT of machines
( > 3000 ) an