timing out an ssh command

Paul Swartz z3p at twistedmatrix.com
Wed May 7 18:32:16 EDT 2003


"Andrei Doicin" <Andrei.Doicin at cern.ch> wrote in message news:<b9b2kt$afg$1 at sunnews.cern.ch>...
> Dear fellow Pythonheads,
> 
> I have written a fairly nifty but "just beyond amateur" =) wrapper script in
> python for sending ssh commands to remote hosts from the unix command line,
> but would now like the ssh command to time out after a certain amount of
> time (eventually to be specified as an option to the wrapper).
> 
> What would you advise is the best way to do this, out of the following
> avenues to consider ?

I would suggest that none of those are what you want.  I'm not sure
exactly what your requirements are, but it sounds like Conch is what
you want.  Conch is an SSHv2 implementation using Twisted and is
available at http://www.twistedmatrix.com/.  However, without more
information about what you're /actually/ trying to do, I can't be
sure.

-p




More information about the Python-list mailing list